Crandore Hub

ggcompare

Mean Comparison in 'ggplot2'

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

Versions across snapshots

VersionRepositoryFileSize
0.0.6 rolling source/ R- ggcompare_0.0.6.tar.gz 57.7 KiB
0.0.6 rolling linux/jammy R-4.5 ggcompare_0.0.6.tar.gz 137.8 KiB
0.0.6 latest source/ R- ggcompare_0.0.6.tar.gz 57.7 KiB
0.0.6 latest linux/jammy R-4.5 ggcompare_0.0.6.tar.gz 137.8 KiB
0.0.6 2026-04-23 source/ R- ggcompare_0.0.6.tar.gz 57.7 KiB
0.0.6 2026-04-09 windows/windows R-4.5 ggcompare_0.0.6.zip 140.4 KiB
0.0.3 2025-04-20 source/ R- ggcompare_0.0.3.tar.gz 57.2 KiB

Dependencies (latest)

Imports