ggbox_lbls.numeric: Summary Labels for Boxplots in GGplot for class numeric

Description Usage Arguments Author(s) Examples

View source: R/ggbox_lbls.numeric.R

Description

This function labels summary statistics on a ggplot boxplot. The summary statistics reported are the minimum, maximum, Q1, Q3 and median. To use the function, you must specify a vector x.

Usage

1
2
## S3 method for class 'numeric'
ggbox_lbls(obj, color = "lightblue", ...)

Arguments

obj

numeric object to be plotted

color

The color of the body of the boxplot. By default, the boxplot color is lightblue.

...

additional arguments passed to plotting functions

Author(s)

Samantha Bothwell samantha.bothwell@cuanschutz.edu

Examples

1
2
3
4
ggbox_lbls(rnorm(1000), color = "pink")

x <- c(1,6,3,9,7,5,9,16,4)
ggbox_lbls(x, color = "steelblue1")

sjbothwell/Test_Package documentation built on Sept. 4, 2020, 6:37 p.m.