ggBoxPlotAoC: ANCOVA Box Plot

ggBoxPlotAoCR Documentation

ANCOVA Box Plot

Description

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

Usage

ggBoxPlotAoC(
  data,
  dv,
  iv,
  aov,
  pwc,
  covar = c(),
  pre.post = c(),
  color = c(),
  theme = c(),
  step.increase = 0.05,
  subtitle = c(),
  ylim = NA
)

Arguments

data

a data.frame containing the data in which performing the ANOVA test

dv

a character string containing the name of variable used as x-axis

iv

a character string containing the name of variable used as y-axis

aov

the ANOVA statistical results returned by rstatix::anova_test

pwc

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

covar

a column name of covariance variable

pre.post

a column name of time variable (pre- and post-test phases)

color

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

theme

the theme used in the box plot

step.increase

the numeric vector to be used to minimize the overlap

subtitle

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

ylim

the number that indicates the axis-y limit


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