bwplot2: An extended box and whiskers plot

View source: R/bwplot2.R

bwplot2R Documentation

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

tactile documentation built on May 31, 2023, 9:47 p.m.