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 Jun. 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

r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  
embryogrowth  
Tools to Analyze the Thermal Reaction Norm of Embryo Growth
Tools to analyze the embryo growth and the sexualisation thermal reaction norms. See ...
Download / Learn more Package Citations See dependency  
keep  
Arrays with Better Control over Dimension Dropping
Provides arrays with flexible control over dimension dropping when subscripting. ...
Download / Learn more Package Citations See dependency  
curtailment  
Finds Binary Outcome Designs Using Stochastic Curtailment
Finds single- and two-arm designs using stochastic curtailment, as described by Law et al. (2022) ...
Download / Learn more Package Citations See dependency  
gRain  
Bayesian Networks
Probability propagation in graphical independence networks, also known as Bayesian networks or prob ...
Download / Learn more Package Citations See dependency  
roxygen2  
In-Line Documentation for R
Generate your Rd documentation, 'NAMESPACE' file, and collation field using specially formatted com ...
Download / Learn more Package Citations See dependency  

27,372

R Packages

233,548

Dependencies

72,820

Author Associations

27,205

Publication Badges

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