panel_tplot | R Documentation |
tplot
Panel with tplot
s.
panel_tplot(
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 tplot |
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 |
tplot
Other panel functions:
panel_box()
,
panel_ci()
library('rawr')
set.seed(1)
l <- replicate(5, rnorm(10), simplify = FALSE)
panel_tplot(l, add = FALSE)
panel_tplot(l, type = 'd', col = 1:5, pch = 19, add = FALSE,
panel.first = {
p <- par('usr')
rect(-1, p[3L], 1, p[4L], 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.