panel_ci | R Documentation |
Panel with points and confidence intervals.
panel_ci(
data,
y = rev(seq.int(nrow(data))),
col = 1L,
cex = NULL,
pch = NULL,
diamond = NULL,
cex.diamond = 5,
xlim = extendrange(unlist(data)),
limits = xlim,
logx = FALSE,
panel.first = NULL,
panel.last = NULL,
vline = 1,
type,
...
)
data |
a data frame or matrix with three columns containing the point value, lower limit, and upper limit, respectively |
y |
y-coordinates where each row of |
col, cex, pch |
color, size, plotting character for each, recycled as needed |
xlim |
x-axis limits |
limits |
limits for intervals; values outside of |
logx |
logical; if |
panel.first, panel.last |
expressions to be evaluated before and
after any plotting; see |
vline |
x-position of the vertical dashed line; use |
type |
ignored |
... |
additional arguments passed to |
Other panel functions:
panel_box()
,
panel_tplot()
dd <- data.frame(
x = 1,
lci = 1 - 1 / 1:10,
uci = 1 + 1 / 1:10
)
panel_ci(dd[1:10, ])
panel_ci(dd[1:10, ], diamond = c(1, 5, 10))
panel_ci(dd[1:10, ], limits = c(0.25, 1.5))
panel_ci(dd[1:10, ], limits = c(0.25, 0.95))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.