ciplot {hacks}R Documentation

Confidence Interval Plot

Description

Draws a dotplot with line segments representing upper and lower confidence bounds. This function is loosely based on dotchart.

Usage

ciplot(x, labels = NULL, cex = par("cex"), 
col = par('col'), xlim = range(x[is.finite(x)]), 
main = NULL, xlab = NULL, ylab = NULL, ...) 

Arguments

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.

Author(s)

Nathan Stephens

See Also

dotchart, points, segments.

Examples

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)

[Package hacks version 0.1-5 Index]