ggPlotAoC: ANCOVA Plot

View source: R/ancova_plots.R

ggPlotAoCR Documentation

ANCOVA Plot

Description

This function create box plots to report results from ANCOVA (AoV).

Usage

ggPlotAoC(
  data,
  x,
  y,
  color = c(),
  aov,
  pwc,
  linetype = color,
  by = c(),
  addParam = c(),
  font.label.size = 14,
  step.increase = 0.25,
  palette = "jco",
  p.label = "p.adj.signif",
  subtitle = c()
)

Arguments

data

a data.frame containing the data in which performing the ANOVA 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

color

a vector or character string containing the name of variable used as color in the box-plot

aov

the ANOVA statistical results returned by rstatix::anova_test

pwc

the statistical results returned by a pairwise comparisons between groups from rstatix

linetype

the character string indicating the column in data for changing linetype

by

the character vector containing the columns in the data to be used as variable to generate the grouping panels

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 ANCOVA table


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