ggPlotPairedTTest | R Documentation |
This function create ggpubr box-plot to report result from a paired t-test.
ggPlotPairedTTest(data, x, y, tt, id, 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 |
id |
the identification column of observations in the data |
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.