Learn R Programming

rapport (version 0.3)

rp.dotplot: Dotplot

Description

This function is a wrapper around dotplot which operates only on factors with optional facet.

Usage

rp.dotplot(x, facet = NULL, data = NULL, groups = FALSE,
    auto.key = FALSE, horizontal = TRUE, ...)

Arguments

x
a factor variable
facet
an optional categorical variable to make facets by
data
an optional data frame from which the variables should be taken
horizontal
see xyplot
groups
see xyplot
auto.key
see xyplot
...
additional parameters to dotplot

Details

Default parameters are read from options:

  • 'style.theme'.

Examples

Run this code
rp.dotplot(ius2008$game)
rp.dotplot(ius2008$game, horizontal = FALSE)
rp.dotplot(ius2008$game, facet = ius2008$dwell)
rp.dotplot(ius2008$dwell, facet = ius2008$gender, horizontal = FALSE)
rp.dotplot(ius2008$game, facet = ius2008$dwell, groups = TRUE)
with(ius2008, rp.dotplot(gender, facet = dwell))
rp.dotplot(game, data = ius2008)
rp.dotplot(dwell, gender, ius2008)

Run the code above in your browser using DataLab