plot_boxplot: Boxplot simplified creation

View source: R/Plot_boxplot.R

plot_boxplotR Documentation

Boxplot simplified creation

Description

Easy creation of a boxplot

Usage

plot_boxplot(
  df,
  x,
  ...,
  ylog = T,
  addPoints = T,
  statTest = T,
  addn = T,
  outputExpr = F,
  colwrap = NA,
  wrapscale = "free",
  methodCompar = "wilcox.test"
)

Arguments

df

dataframe to analyze

x

categorica covariate

...

continue value for y abcis. If several values, will create one plot per ... column vs x

ylog

If True, set log y scale

addPoints

If True, add all points in addition to boxplots

statTest

If True, use statistiscal test through ggpubr package

addn

If True, add numer of patietn per group

outputExpr

if True return the Peccary independant R code instead of the output

colwrap

name of a column to wrap the output. Used only if length of ... is equal to 1

wrapscale

scale of wrap

methodCompar

method to use for statistical test (same as ggpubr)

Author(s)

Thibaud Derippe (Thibaud.Derippe@gmail.com)


Peccary-PMX/PeccAnalysis documentation built on July 7, 2022, 5:27 a.m.