Other packages > Find by keyword >

ggcompare  

Mean Comparison in 'ggplot2'
View on CRAN: Click here


Download and install ggcompare package within the R console
Install from CRAN:
install.packages("ggcompare")

Install from Github:
library("remotes")
install_github("cran/ggcompare")

Install by package version:
library("remotes")
install_version("ggcompare", "0.0.5")



Attach the package and use:
library("ggcompare")
Maintained by
Hao Wang
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2024-10-02
Latest Update: 2024-12-09
Description:
Add mean comparison annotations to a 'ggplot'. This package provides an easy way to indicate if two or more groups are significantly different in a 'ggplot'. Usually you do not need to specify the test method, you only need to tell stat_compare() whether you want to perform a parametric test or a nonparametric test, and stat_compare() will automatically choose the appropriate test method based on your data. For comparisons between two groups, the p-value is calculated by t-test (parametric) or Wilcoxon rank sum test (nonparametric). For comparisons among more than two groups, the p-value is calculated by One-way ANOVA (parametric) or Kruskal-Wallis test (nonparametric).
How to cite:
Hao Wang (2024). ggcompare: Mean Comparison in 'ggplot2'. R package version 0.0.5, https://cran.r-project.org/web/packages/ggcompare. Accessed 07 Mar. 2026.
Previous versions and publish date:
0.0.1 (2024-10-02 18:50), 0.0.2 (2024-10-07 13:00), 0.0.3 (2024-12-09 07:00), 0.0.4 (2025-08-20 14:30), 0.0.5 (2025-09-24 14:40)
Other packages that cited ggcompare R package
View ggcompare citation profile
Other R packages that ggcompare depends, imports, suggests or enhances
Complete documentation for ggcompare
Functions, R codes and Examples using the ggcompare R package
Full ggcompare package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

SAMtool  
Stock Assessment Methods Toolkit
Simulation tools for closed-loop simulation are provided for the 'MSEtool' operating model to inform ...
Download / Learn more Package Citations See dependency  
lmSubsets  
Exact Variable-Subset Selection in Linear Regression
Exact and approximation algorithms for variable-subset selection in ordinary linear regression mode ...
Download / Learn more Package Citations See dependency  
testDriveR  
Teaching Data for Statistics and Data Science
Provides data sets for teaching statistics and data science courses. It includes a sample of data f ...
Download / Learn more Package Citations See dependency  
nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  
portalr  
Create Useful Summaries of the Portal Data
Download and generate summaries for the rodent, plant, ant, and weather data from the Portal Projec ...
Download / Learn more Package Citations See dependency  
ReviewR  
A Light-Weight, Portable Tool for Reviewing Individual Patient Records
A portable Shiny tool to explore patient-level electronic health record data and perform chart revi ...
Download / Learn more Package Citations See dependency  

26,264

R Packages

223,360

Dependencies

70,376

Author Associations

26,265

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA