ggPlotTTest | R Documentation |
This function create ggpubr box-plot to report result from an independent t-test.
ggPlotTTest(
data,
x,
y,
tt,
addParam = c(),
font.label.size = 14,
subtitle = -1
)
data |
a data.frame containing the data in which performing the t-test |
x |
a character string containing the name of variable used as x-axis |
y |
a character string containing the name of variable used as y-axis |
tt |
the statistical results returned by a t_test from rstatix |
addParam |
the character vector with elements to be included in the plot (e.g. "dotplot", "jitter", "boxplot", "point", "mean", "mean_se", "mean_sd", "mean_ci", "mean_range", "median", "median_iqr", "median_mad", "median_range"); see ?desc_statby for more details. |
font.label.size |
the integer value with the font label size |
subtitle |
the subtitle in the plot, default value -1 is the t-test value |
A ggplot object with the t-test plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.