lattice (version 0.3-1)

bwplot: Box and Whisker Plots

Description

Draw Box and Whisker Plots

Usage

bwplot(formula, box.ratio = 1, ...)

Arguments

formula
a formula describing the form of conditioning plot. A formula of the form y ~ x | g1 * g2 * ... indicates that plots of y versus x should be produced conditional on the variables g1,g2,....
box.ratio
gives the ratio of the width of the rectangles to the inter rectangle space.
...
other arguments

Value

  • An object of class ``trellis'', plotted by default by print.trellis.

synopsis

bwplot(formula, data = parent.frame(), aspect = "fill", layout = NULL, panel = panel.bwplot, prepanel = NULL, scales = list(), strip = TRUE, groups = NULL, xlab, xlim, ylab, ylim, box.ratio = 1, ..., subscripts = !missing(groups), subset = TRUE)

Details

see the documentation for trellis.args. Behaviour when trying to modify the y-axis via scales$y is not defined. (It might give what you want, but again, it might not.) The default value of ylim is an interval containing c(1,number of levels of y), with the extra amount calculated based on box.ratio (not 7%, the usual default) .

See Also

trellis.args, panel.bwplot,Lattice

Examples

Run this code
data(singer)
bwplot(voice.part ~ height, data=singer, xlab="Height (inches)")

Run the code above in your browser using DataLab