Description Usage Arguments Value Examples
Alternative interface to graphics::boxplot
1 2 3 4 5 6 7 |
x |
as for |
... |
additional arguments passed on to |
fill |
alternative argument name to |
color, colour |
alternative argument names for |
as for graphics::boxplot
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.