bwplot2: Custom Lattice Boxplot

Description Usage Arguments Details Examples

View source: R/bwplot2.R

Description

This generates a custom lattice boxplot; we super-impose actual plot points for groups with a small number of points, and also restrict plotting of the boxplot for these as well (since they are really rather mis-representative of the distribution when there are so few points.) The downside is that functionality is not implemented for multi-panel plots.

Usage

1
2
bwplot2(form, data = NULL, xlab = NULL, ylab = NULL, main = NULL,
  n = 10, ...)

Arguments

form

a formula object as expected by lattice's xyplot.

data

see xyplot.

xlab

see xyplot.

ylab

see xyplot.

main

see xyplot.

n

number of points necessary for a boxplot to be drawn.

...

additional arguments passed to xyplot call.

Details

Axis labels are inferred from the form object passed in when possible.

Examples

1
2
3
set.seed(123)
dat <- data.frame( y=rnorm(100), x=factor( rbinom(100,size=2,p=0.8) ) )
bwplot2( x ~ y , dat)

Kmisc documentation built on May 29, 2017, 1:43 p.m.

Related to bwplot2 in Kmisc...