Scatterplot with histograms
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", ...)
Draws the graphic. No return value.
John Verzani
This example comes from the help page for layout
.
data(emissions) attach(emissions) scatter.with.hist(perCapita,CO2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.