Learn R Programming

ggcompare (version 0.0.3)

Mean Comparison in 'ggplot2'

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

Copy Link

Version

Install

install.packages('ggcompare')

Monthly Downloads

130

Version

0.0.3

License

Artistic-2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Hao Wang

Last Published

December 9th, 2024

Functions in ggcompare (0.0.3)

geom_bracket

Add Brackets with Labels to a ggplot
ggcompare-package

ggcompare: Mean Comparison in 'ggplot2'
stat_compare

Add Mean Comparison for Groups to a ggplot