ggPlotTTest: Independent T-Test Plot

View source: R/ttest_plots.R

ggPlotTTestR Documentation

Independent T-Test Plot

Description

This function create ggpubr box-plot to report result from an independent t-test.

Usage

ggPlotTTest(
  data,
  x,
  y,
  tt,
  addParam = c(),
  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

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

Value

A ggplot object with the t-test plot


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