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 30 Jul. 2026.
Previous versions and publish date:
(2026-07-09 07:43), 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

extremefit  
Estimation of Extreme Conditional Quantiles and Probabilities
Extreme value theory, nonparametric kernel estimation, tail conditional probabilities, extreme cond ...
Download / Learn more Package Citations See dependency  
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  
trajectories  
Classes and Methods for Trajectory Data
Classes and methods for trajectory data, with support for nesting individual Track objects in track ...
Download / Learn more Package Citations See dependency  
bootUR  
Bootstrap Unit Root Tests
Set of functions to perform various bootstrap unit root tests for both individual time series (incl ...
Download / Learn more Package Citations See dependency  
radiant.data  
Data Menu for Radiant: Business Analytics using R and Shiny
The Radiant Data menu includes interfaces for loading, saving, viewing, visualizing, summarizing, t ...
Download / Learn more Package Citations See dependency  
SRCS  
Statistical Ranking Color Scheme for Multiple Pairwise Comparisons
Implementation of the SRCS method for a color-based visualization of the results of multiple pairwis ...
Download / Learn more Package Citations See dependency  

27,987

R Packages

239,283

Dependencies

74,234

Author Associations

27,988

Publication Badges

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