Learn R Programming

vioplot (version 0.5.0)

add_outliers: Annotated Violin Plot

Description

Annotation to highlight outliers.

Usage

add_outliers(variable, categories, cutoff = 3,
fill = par()$bg, col = par()$fg, bars = par()$fg, lwd = par()$lwd,
verbose = FALSE)

Arguments

variable

continuous variable to to plot on y-axis (numeric or integer).

categories

discrete variable to break down groups (factor or string).

cutoff

minimum number (default 3L) of standard deviations to report.

fill

colour of spots. Scalar applied to all columns or a vector for each category.

col

colour of rings or borders. Scalar applied to all columns or a vector for each category.

bars

colour of horizontal bars. Scalar applied to all columns or a vector for each category.

lwd

thickness of border.

verbose

to print logs (defaults to FALSE).

Details

Annotate violin plots with outliers