scatter.with.hist {UsingR} | R Documentation |
Scatterplot with histograms
Description
Draws a scatterplot of the data, and histogram in the margins. A trend line can be added, if desired.
Usage
scatter.with.hist(x, y,
hist.col = gray(0.95),
trend.line = "lm",
...)
Arguments
x |
numeric predictor |
y |
numeric response variables |
hist.col |
color for histogram |
trend.line |
Draw a trend line using |
... |
Passed to |
Value
Draws the graphic. No return value.
Author(s)
John Verzani
References
This example comes from the help page for layout
.
See Also
Examples
data(emissions)
attach(emissions)
scatter.with.hist(perCapita,CO2)
[Package UsingR version 2.0-7 Index]