Description Usage Arguments Examples
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
1 | give.n(x)
|
x |
1 | p <- ggplot(all2, aes(x=Group2, y=corr_mito_D)) + stat_summary(fun.data = give.n, geom = "text") + geom_boxplot()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.