ggPlotPairedTTest: Paired T-Test Plot

View source: R/ttest_plots.R

ggPlotPairedTTestR Documentation

Paired T-Test Plot

Description

This function create ggpubr box-plot to report result from a paired t-test.

Usage

ggPlotPairedTTest(data, x, y, tt, id, font.label.size = 14, subtitle = -1)

Arguments

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

Value

A ggplot object with the t-test plot


geiser/rshinystatistics documentation built on Feb. 18, 2024, 6:07 p.m.