Rev 974 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{bxp}\title{Box Plots from Summaries}\usage{bxp(z, notch = FALSE, width = NULL, varwidth = FALSE, notch.frac = 0.5,border = par("fg"), col = NULL, log = "", pars = NULL, \dots)}\alias{bxp}\arguments{\item{z}{a list containing data summaries to be used in constructing the plots.These are usually the result of a call to \code{\link{boxplot}},but can be generated in any fashion.}\item{notch}{if \code{notch} is \code{TRUE}, a notch is drawn in eachside of the boxes. If the notches of two plots do notoverlap then the medians are significantly different at the5 percent level.}\item{width}{a vector giving the relative widths of the boxes making upthe plot.}\item{varwidth}{if \code{varwidth} is \code{TRUE}, the boxes are drawnwith widths proportional to the square-roots of the number ofobservations in the groups.}\item{notch.frac}{numeric in (0,1). When \code{notch=TRUE}, the fractionof the box width that the notches should use.}\item{border}{character, the color of the box borders. Is recycled formultiple boxes.}\item{col}{character; the color within the box. Is recycled formultiple boxes}\item{log}{character, indicating if any axis should be drawn inlogarithmic scale, as in \code{\link{plot.default}}.}\item{pars,\dots}{Graphical parameters can be passed as arguments tothis function, either as a list (\code{pars}) or normally(\code{\dots}).}}\description{\code{bxp(..)} draws box plots based on the given summaries in \code{z}.It is usually called from within \code{\link{boxplot}(..)}, but can be invokeddirectly.}\value{An invisible vector with the x-coordinates of box centers, usefulfor adding to the plot.}\examples{str(bx.p <- boxplot(split(rnorm(100), gl(5,20)), plot = FALSE))op <- par(mfrow= c(2,2))bxp(bx.p)bxp(bx.p, notch = TRUE)bxp(bx.p, notch = TRUE, col= 'lightblue')bxp(bx.p, notch = TRUE, col= 'lightblue', border='red', log = 'x')par(op)}\keyword{aplot}