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.


News

ggpval 0.2.0

  • Fixed bug: error caused by fill argument in ggplot.
  • Enhanced text annotation. Allow flexible text annotations in different facets.
  • Allow more flexible additional statistical test parameters, e.g. alternative = "less". (#2)
  • Fixed bug: p-value order different than facet order, assign wrong p-value to different facets.
  • Parse custom annotation text. Add new argument parse_text.
  • Adjusted default barheight.
  • Add new argument response to specify the response cloumn of statistical test when automatic inferance fails.

Reference manual

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

install.packages("ggpval")

0.2.0 by Jun Cheng, 7 months ago


https://github.com/s6juncheng/ggpval


Browse source code at https://github.com/cran/ggpval


Authors: Jun Cheng [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Imports ggplot2, data.table

Suggests knitr, rmarkdown


See at CRAN