give.n: Allows boxplots to output the number of observations for each...

Description Usage Arguments Examples

View source: R/give.n.R

Description

Allows boxplots to output the number of observations for each factor. Taken from stackoverflow: https://stackoverflow.com/questions/3483203/create-a-boxplot-in-r-that-labels-a-box-with-the-sample-size-n

Usage

1
give.n(x)

Arguments

x

Examples

1
p <- ggplot(all2, aes(x=Group2, y=corr_mito_D)) + stat_summary(fun.data = give.n, geom = "text") + geom_boxplot()

syyang93/yangR documentation built on March 1, 2021, 4:55 p.m.