Annotate Statistical Tests for 'ggplot2'

Automatically performs desired statistical tests (e.g. wilcox.test(), t.test()) to compare between groups, and adds the resulting p-values to the plot with an annotation bar. Visualizing group differences are frequently performed by boxplots, bar plots, etc. Statistical test results are often needed to be annotated on these plots. This package provides a convenient function that works on 'ggplot2' objects, performs the desired statistical test between groups of interest and annotates the test results on the plot.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.2.0 by Jun Cheng, 2 months ago

Browse source code at

Authors: Jun Cheng [aut, cre]

Documentation:   PDF Manual  

GPL-3 license

Imports ggplot2, data.table

Suggests knitr, rmarkdown

See at CRAN