boxplot_t_test: Creates Boxplots with Significance Makers

View source: R/boxplot_t_test.R

boxplot_t_testR Documentation

Creates Boxplots with Significance Makers

Description

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

Usage

boxplot_t_test(df, dependentvars, group, adjust_p = "BH", ylimits = c(0, 150))

Arguments

df

data.frame.

dependentvars

Character vector.

group

Character vector.

adjust_p

Character vector. "holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none". See adjust_pvalue for more details

ylimits

Numeric vector.

Value

List(Plot and stats)

Examples

boxplot_t_test(mtcars, c("mpg", "hp"), group = "am")

Buedenbender/datscience documentation built on Nov. 21, 2022, 11:14 a.m.