An extended version of lattice::bwplot(). The only modification is to group and stack box plots if groups is provided.

bwplot2(x, data = NULL, ...)

# S3 method for formula
bwplot2(x, data = NULL, allow.multiple = is.null(groups)
  || outer, outer = FALSE, auto.key = FALSE, groups = NULL,
  drop.unused.levels = lattice.getOption("drop.unused.levels"), ...,
  subset = TRUE)

# S3 method for numeric
bwplot2(x, data = NULL, xlab = deparse(substitute(x)),
  ...)

Arguments

x

see lattice::bwplot()

data

see lattice::bwplot()

...

arguments passed down to lattice::bwplot()

allow.multiple

see lattice::bwplot()

outer

see lattice::bwplot()

auto.key

see lattice::bwplot()

groups

see lattice::bwplot()

drop.unused.levels

see lattice::bwplot()

subset

see lattice::bwplot()

xlab

see lattice::bwplot()

Value

An object of class "trellis". The update method can be used to update components of the object and the print method (usually called by default) will plot it on an appropriate plotting device.

Examples

bwplot2(variety ~ yield, groups = site, data = barley, par.settings = tactile.theme())