Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


rapport (version 0.51)

rp.densityplot: Density plot

Description

This function is a wrapper around densityplot which operates only on numeric vectors with optional facet.

Usage

rp.densityplot(x, facet = NULL, data = NULL, ...)

Arguments

x
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 densityplot

Examples

Run this code
rp.densityplot(ius2008$edu)
rp.densityplot(ius2008$edu, facet = ius2008$gender)
rp.densityplot(ius2008$edu, ius2008$dwell)
with(ius2008, rp.densityplot(edu, facet = gender))
rp.densityplot(edu, data = ius2008)
rp.densityplot(edu, gender, ius2008)

Run the code above in your browser using DataLab