Learn R Programming

rapport (version 0.51)

rp.scatterplot: Scatterplot

Description

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

Usage

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

Arguments

x
a numeric 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 xyplot

Examples

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

Run the code above in your browser using DataLab