add_outliers: Annotated Violin Plot

View source: R/annotation.R

add_outliersR Documentation

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


vioplot documentation built on Sept. 11, 2024, 5:36 p.m.