threeWayAnovaPlots: Three-Way ANOVA Plots

View source: R/anova_plots.R

threeWayAnovaPlotsR Documentation

Three-Way ANOVA Plots

Description

This functions returns a list of Box Plots related to Three-Way ANOVA test.

Usage

threeWayAnovaPlots(
  data,
  dv,
  ivs,
  aov,
  pwcs,
  addParam = c(),
  font.label.size = 14,
  step.increase = 0.25,
  p.label = "p.adj.signif",
  subtitle = c()
)

Arguments

data

a data.frame containing the data in which performing the Three-Way ANOVA test

dv

a character string containing the variable used as y-axis

ivs

a character vector containing the variables used as x-axis in Three-Way ANOVA test

aov

the ANOVA statistical results returned by rstatix::anova_test

pwcs

the list of statistical results returned from pairwise comparisons between groups 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

step.increase

the numeric vector to be used to minimize the overlap

p.label

the label used for p-values

subtitle

the subtitle in the plot, use number to indicate the row from ANOVA table

Value

A list of ggplot objects with the Three-Way ANOVA plots


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