Learn R Programming

rapport (version 0.51)

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,
    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
groups
see xyplot
horizontal
see xyplot
...
additional parameters to dotplot

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