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).
Package details |
|
---|---|
Author | Hao Wang [aut, cre] (<https://orcid.org/0009-0000-9477-9585>) |
Maintainer | Hao Wang <wanghao8772@gmail.com> |
License | Artistic-2.0 |
Version | 0.0.3 |
URL | https://hmu-wh.github.io/ggcompare/ https://github.com/HMU-WH/ggcompare/ |
Package repository | View on CRAN |
Installation |
Install the latest version of this package by entering the following in R:
|
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.