ggBarPlotAoC: ANCOVA Bar Plot

View source: R/ancova_plots.R

ggBarPlotAoCR Documentation

ANCOVA Bar Plot

Description

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

Usage

ggBarPlotAoC(
  data,
  dv,
  iv,
  aov,
  pwc,
  covar = NULL,
  pre.post = NULL,
  bar.width = 0.75,
  color = c(),
  show.errorbar = T,
  theme = c(),
  font.size = list(text.x = 10, text.y = 10, title.x = 12, title.y = 12),
  step.increase = 0.05,
  subtitle = c(),
  ylim = NA
)

Arguments

data

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

dv

a column name of dependent variable

iv

a column name of independent variable

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)

bar.width

the numeric value for the bar plots

color

a vector containing the colors in the box-plot

show.errorbar

a boolean that indicates if the plot shows error bar

theme

the theme used in the bar plot

font.size

the list with the font label sizes

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.