tactile (version 0.2.0)

bwplot2: An extended box and whiskers plot

Description

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

Usage

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)), ...)

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.

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()

Examples

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

Run the code above in your browser using DataLab