View source: R/boxplot_t_test.R
boxplot_t_test | R Documentation |
Code for this function is based on the Guide of A. Kassambra on datanovia The functions creates given a vector of dependent variables (DV), nicely formatted boxplots with facetwrap for all DVs and calculates an independent sample T-Test to include significance bars
boxplot_t_test(df, dependentvars, group, adjust_p = "BH", ylimits = c(0, 150))
df |
data.frame. |
dependentvars |
Character vector. |
group |
Character vector. |
adjust_p |
Character vector. "holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none".
See |
ylimits |
Numeric vector. |
List(Plot and stats)
boxplot_t_test(mtcars, c("mpg", "hp"), group = "am")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.