Box and Whisker Plot (Box Plot)

DESCRIPTION:

Create a box and whisker (boxplot) Trellis plot. A modified version of the plot is created if the data argument is a bigdata bdFrame (see the DETAILS).

USAGE:

bwplot(formula, box.ratio = 1, ... ) 
The following arguments have special meaning within this function. The common meanings for these and all other arguments are listed separately under trellis.args.

ARGUMENTS:

formula
a formula in the form y ~ x | g1 * g2 * ... however the given variables g1, g2, ... may be omitted. y in formula will be coerced into a factor or shingle. x must be numeric.
box.ratio
the ratio of box width to inter-box space.

VALUE:

an object of class trellis, which is automatically plotted by print.trellis.

DETAILS:

If the data argument is a bdFrame then a modified box and whiskers plot is created. This plot does not show the outliers and the whiskers extend from the quartiles to the extrema.

SEE ALSO:

, ,

EXAMPLES:

bwplot(which ~ data, 
       data=make.groups(lottery.payoff, lottery2.payoff, lottery3.payoff)) 
bwplot(voice.part ~ height, data=singer, xlab="Height (inches)") 
bwplot(voice.part ~ height, data=singer, 
       prepanel=function(x,y) 
                list(xlim=range(x,c(58,74))), 
       panel=function(...) { 
                panel.bwplot(...) 
                panel.abline(v=c(60,72))  # reference line 5 and 6 feet 
       } 
) 
bwplot(voice.part ~ height, data=singer, 
       xlim = range(singer$height,c(58,74)), # ensure ref line not at edge 
       panel = function(...) { 
                 panel.bwplot(...) 
                 panel.abline(v=c(60,72))  # reference line at 5 and 6 feet 
       })