plotBoxes: plotBoxes

Description Usage Arguments Examples

View source: R/FUNCTION_plotBoxes.R

Description

Function to generate side-by-side boxplots with various layout options. Note that NA values are always dropped.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plotBoxes(
  list.in = NULL,
  y.lab = "Axis Label",
  fill.vec = NULL,
  border.vec = NULL,
  labels = TRUE,
  violin = TRUE,
  y.lim = NULL,
  y.lim.trim = FALSE,
  show.n = TRUE
)

Arguments

list.in

a list with numerical vectors

y.lab

label for the y axis

fill.vec

vector with fill colors, one for each element of list.in

labels

if TRUE, show median values

violin

if TRUE, replace half the box plot with a violin plot

y.lim

NULL, or a vector with y axis limits

y.lim.trim

if y.lim is NULL, should the automatic y limit be trimmed? (skip for large outliers)

show.n

if TRUE, show the sample size for each box

col.vec

vector with border colors, one for each element of list.in

Examples

1
plotBoxes(list.in = list(Var1 = rnorm(200,0,1),Var2 = rnorm(200,0.5,3)))

SOLV-Code/SPATFunctions-Package documentation built on April 25, 2020, 12:59 a.m.