xyplot | R Documentation |
Create a scatter plot.
xyplot(x, data, ...)
x |
|
data |
data frame. The data where the variables can be found. |
groups |
factor. An additional variable to use for coloring the individual points in the plot. |
For additional options for creating bargraphs, look at the help file found in the lattice
package or run help(xyplot, package="lattice")
in the console.
data(cdc)
xyplot(weight~height, data = cdc)
xyplot(weight ~ height | gender, data = cdc)
xyplot(weight ~ height, data = cdc, groups = gender)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.