Merges a list of boxplot.stats() elements

Share:

Description

Merges a list of boxplot.stats() elements.

Usage

1
2
## S3 method for class 'list'
mergeBoxplotStats(stats, ...)

Arguments

stats

A list of elements each in a format returned by boxplot.stats.

...

Not used.

Value

Returns a list structure in a format that is returned by boxplot.

Author(s)

Henrik Bengtsson

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library("stats")

x <- matrix(rnorm(1000), ncol=5)
x <- as.data.frame(x)

stats0 <- boxplot(x, plot=FALSE)
stats1 <- lapply(x, FUN=boxplot.stats)
stats1b <- mergeBoxplotStats(stats1)
stopifnot(all.equal(stats0, stats1b))

bxp(stats1b)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.