Learn R Programming

rapport (version 0.51)

rp.boxplot: Boxplot

Description

This function is a wrapper around bwplot which operates only on numeric variables with optional facet.

Usage

rp.boxplot(x, y = NULL, facet = NULL, data = NULL, ...)

Arguments

x
a factor variable
y
a numeric variable
facet
an optional categorical variable to make facets by
data
an optional data frame from which the variables should be taken
...
additional parameters to bwplot

Examples

Run this code
rp.boxplot(ius2008$age)
rp.boxplot(ius2008$age, ius2008$gender)
rp.boxplot(ius2008$age, ius2008$dwell, facet = ius2008$gender)
with(ius2008, rp.scatterplot(age, dwell, facet = gender))
rp.boxplot(age, dwell, data = ius2008)
rp.boxplot(age, dwell, gender, ius2008)

Run the code above in your browser using DataLab