knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-"
)

ggsimplestats

R-CMD-check

The goal of ggsimplestats is to provide an easy interface to add statistics to boxplot created with ggplot2

Installation

You can install the development version of ggsimplestats like so:

# install.packages("devtools")
devtools::install_github("maximilian-heeg/ggsimplestats")

Minimal Example

This is a minimal example of how to add the statistics to a plot. In this example we use the PlantGrowth dataset.

library(ggplot2)
library(ggsimplestats)

theme_set(ggthemes::theme_few())

ggplot(PlantGrowth, aes(group, weight, fill=group)) +
  geom_boxplot()  +
  stat_kwAllPairsDunnTest()

Test types

Currently, four different tests are supported.

Further reading

For further information please see the vignette("ggsimplestats").



maximilian-heeg/ggsimplestats documentation built on June 9, 2022, 9:44 p.m.