boxplot: Boxplot

Description Usage Arguments Value Examples

Description

Alternative interface to graphics::boxplot

Usage

1
2
3
4
5
6
7
boxplot(x, ..., fill, color, colour)

## S4 method for signature 'ANY,missing,missing,missing'
boxplot(x, ..., fill, color, colour)

## S4 method for signature 'ANY,ANY,ANY,ANY'
boxplot(x, ..., fill, color, colour)

Arguments

x

as for graphics::boxplot

...

additional arguments passed on to graphics::boxplot

fill

alternative argument name to col for the fill colour; may be a colour palette

color, colour

alternative argument names for border for the colour of the borders; may be a colour palette

Value

as for graphics::boxplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Poor man's faceting
boxplot(Days ~ Age+Sex, MASS::quine, fill = pal_green2brown(4),
    axes = FALSE, ann = FALSE)
axis(2)
box()
with(MASS::quine, legend("topleft", levels(Age),
     fill = pal_green2brown(4), title = "Age group", bty = "n"))
pu <- par("usr")[1:2]
M <- matrix(c(3, 1, 1, 3)/4, ncol = 2)
abline(v = mean(pu), lwd = 2)
mtext(c("Female", "Male"), line = 0.5, at = M %*% pu)

BillVenables/WWRGraphics documentation built on Feb. 1, 2021, 12:13 p.m.