View source: R/scatter.with.hist.R
| scatter.with.hist | R Documentation |
Draws a scatterplot of the data, and histogram in the margins. A trend line can be added, if desired.
scatter.with.hist(x, y, hist.col = gray(0.95), trend.line = "lm", ...)
x |
numeric predictor |
y |
numeric response variables |
hist.col |
color for histogram |
trend.line |
Draw a trend line using |
... |
Passed to |
Draws the graphic. No return value.
John Verzani
This example comes from the help page for layout.
layout
data(emissions) attach(emissions) scatter.with.hist(perCapita,CO2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.