Rev 5265 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{F_1_panel.bwplot}\alias{panel.bwplot}\title{ Default Panel Function for bwplot }\description{This is the default panel function for \code{bwplot}.}\usage{panel.bwplot(x, y, box.ratio = 1,box.width = box.ratio / (1 + box.ratio),horizontal = TRUE,pch, col, alpha, cex,font, fontfamily, fontface,fill, varwidth = FALSE,notch = FALSE, notch.frac = 0.5,\dots,levels.fos,stats = boxplot.stats,coef = 1.5,do.out = TRUE)}\arguments{\item{x, y}{ numeric vector or factor. Boxplots drawn for each unique value of\code{y} (\code{x}) if \code{horizontal} is \code{TRUE} (\code{FALSE})}\item{box.ratio}{ ratio of box thickness to inter box space}\item{box.width}{ thickness of box in absolute units; overrides\code{box.ratio}. Useful for specifying thickness when thecategorical variable is not a factor, as use of \code{box.ratio}alone cannot achieve a thickness greater than 1. }\item{horizontal}{logical. If FALSE, the plot is \sQuote{transposed} in the sense thatthe behaviours of x and y are switched. x is now the\sQuote{factor}. Interpretation of other arguments changeaccordingly. See documentation of \code{\link{bwplot}} for a fullerexplanation.}\item{pch, col, alpha, cex, font, fontfamily, fontface}{ graphicalparameters controlling the dot. \code{pch="|"} is treatedspecially, by replacing the dot with a line (similar to\code{\link{boxplot}})}\item{fill}{ color to fill the boxplot}\item{varwidth}{ logical. If TRUE, widths of boxplots are proportionalto the number of points used in creating it.}\item{notch}{ if \code{notch} is \code{TRUE}, a notch is drawn in eachside of the boxes. If the notches of two plots do not overlap thisis \sQuote{strong evidence} that the two medians differ (Chambers etal., 1983, p. 62). See \code{\link{boxplot.stats}} for thecalculations used. }\item{notch.frac}{ numeric in (0,1). When \code{notch=TRUE}, thefraction of the box width that the notches should use. }\item{stats}{ a function, defaulting to \code{\link{boxplot.stats}},that accepts a numeric vector and returns a list similar to thereturn value of \code{boxplot.stats}. The function must acceptarguments \code{coef} and \code{do.out} even if they do not usethem (a \code{\dots} argument is good enough). This function isused to determine the box and whisker plot. }\item{coef, do.out}{ passed to \code{stats}}\item{levels.fos}{ numeric values corresponding to positions of thefactor or shingle variable. For internal use. }\item{\dots}{further arguments, ignored.}}\details{Creates Box and Whisker plot of \code{x} for every level of\code{y} (or the other way round if \code{horizontal=FALSE}). Bydefault, the actual boxplot statistics are calculated using\code{boxplot.stats}. Note that most arguments controlling thedisplay can be supplied to the high-level \code{bwplot} call directly.% Unlike the traditional% analog \code{\link{boxplot}}, notches are not implemented.Although the graphical parameters for the dot representing the mediancan be controlled by optional arguments, many others can not. Theseparameters are obtained from the relevant settings parameters(\code{"box.rectangle"} for the box, \code{"box.umbrella"} for thewhiskers and \code{"plot.symbol"} for the outliers).}\examples{bwplot(voice.part ~ height, data = singer,xlab = "Height (inches)",panel = function(...) {panel.grid(v = -1, h = 0)panel.bwplot(...)},par.settings = list(plot.symbol = list(pch = 4)))bwplot(voice.part ~ height, data = singer,xlab = "Height (inches)",notch = TRUE, pch = "|")}\seealso{\code{\link{bwplot}}, \code{\link{boxplot.stats}}}\author{ Deepayan Sarkar \email{Deepayan.Sarkar@R-project.org}}\keyword{dplot}