panel_box | R Documentation |
boxplot
Panel with boxplot
s.
panel_box(
data,
y = seq.int(length(data)),
col = 1L,
axes = FALSE,
logx = FALSE,
add = TRUE,
panel.first = NULL,
panel.last = NULL,
...
)
data |
a list or data frame for each boxplot |
y |
y-coordinates where each row of |
col |
color for each, recycled as needed |
axes |
logical; if |
logx |
logical; if |
add |
logical; if |
panel.first, panel.last |
expressions to be evaluated before and
after any plotting; see |
... |
additional arguments passed to |
Other panel functions:
panel_ci()
,
panel_tplot()
set.seed(1)
l <- replicate(5, rnorm(10), simplify = FALSE)
panel_box(l, add = FALSE, axes = FALSE)
panel_box(l, add = FALSE, axes = FALSE,
panel.first = rect(-1, 0, 1, 6, col = 'grey90', border = NA),
panel.last = abline(v = 0, lwd = 2, col = 'red')
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.