ciplot {hacks} | R Documentation |
Draws a dotplot with line segments representing upper
and lower confidence bounds. This function is loosely
based on dotchart
.
ciplot(x, labels = NULL, cex = par("cex"), col = par('col'), xlim = range(x[is.finite(x)]), main = NULL, xlab = NULL, ylab = NULL, ...)
x |
a three column matrix where the columns represent the lower confidence limit, the point estimate, and the upper confidence limit (in that order). |
labels |
a vector of labels for each point. If
NULL then rownames(x) is used. |
cex |
the magnification value. |
col |
the color used for the points and the confidence intervals. |
xlim |
the x limits of the plot. |
main |
a main title for the plot. |
xlab |
a label for the x axis. |
ylab |
a label for the y axis. |
... |
additional graphic parameters. |
Nathan Stephens
require(stats) data(chickwts) xx <- summary(lm(weight ~ feed, chickwts))$coef yy<-xx[, 1] + 1.96 * cbind(lcl = -xx[, 2],est = 0, ucl = xx[, 2]) ciplot(yy)