manyboxplot: Boxplot-like figure for many groups

Description Usage Arguments Details Value See Also Examples

View source: R/manyboxplot.R

Description

Boxplot-like figure for many groups, with lines connecting selected quantiles.

Usage

1
2
manyboxplot(x, probs = c(0.05, 0.1, 0.25), dotcol = "blue",
  linecol = c("black", "red", "green", "orange"), ...)

Arguments

x

Matrix of data, with columns indicating the groups.

probs

Numeric vecotr of probabilities with values in [0,1). Quantiles will be symmetric, and the median will always be included.

dotcol

Color for median

linecol

Line colors, same length as probs

...

Additional graphics parameters

Details

Calculates quantiles of the columns of x and then plots dots or lines at median plus lines at a series of quantiles, using grayplot for the actual plot.

Value

None.

See Also

grayplot

Examples

1
2
3
4
5
6
mu <- c(rnorm(50, 0, 0.3), rnorm(50, 2, 0.3)) # vector of means
x <- t(matrix(rnorm(1000*100, mu), ncol=1000))
manyboxplot(x, c(0.05, 0.25), ylim=range(x),
           dotcol=c("blue","green")[(1:100 > 50) + 1],
           hlines=seq(-4, 6, by=2),
           vlines=c(1, seq(20, 100, by=20)))

kbroman/broman documentation built on Sept. 24, 2018, 1:16 a.m.