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).
| Version: | 0.0.6 |
| Depends: | R (≥ 4.2.0) |
| Imports: | ggplot2 |
| Published: | 2026-01-31 |
| DOI: | 10.32614/CRAN.package.ggcompare |
| Author: | Hao Wang |
| Maintainer: | Hao Wang <wanghao8772 at gmail.com> |
| BugReports: | https://github.com/HMU-WH/ggcompare/issues/ |
| License: | Artistic-2.0 |
| URL: | https://hmu-wh.github.io/ggcompare/, https://github.com/HMU-WH/ggcompare/ |
| NeedsCompilation: | no |
| Materials: | NEWS |
| CRAN checks: | ggcompare results |
| Reference manual: | ggcompare.html , ggcompare.pdf |
| Package source: | ggcompare_0.0.6.tar.gz |
| Windows binaries: | r-devel: ggcompare_0.0.6.zip, r-release: ggcompare_0.0.6.zip, r-oldrel: ggcompare_0.0.6.zip |
| macOS binaries: | r-release (arm64): ggcompare_0.0.6.tgz, r-oldrel (arm64): ggcompare_0.0.6.tgz, r-release (x86_64): ggcompare_0.0.6.tgz, r-oldrel (x86_64): ggcompare_0.0.6.tgz |
| Old sources: | ggcompare archive |
Please use the canonical form https://CRAN.R-project.org/package=ggcompare to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.