scatter.with.hist: Scatterplot with histograms

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/scatter.with.hist.R

Description

Draws a scatterplot of the data, and histogram in the margins. A trend line can be added, if desired.

Usage

1
2
3
4
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 lm, supsmu or lowess. Use NULL for none.

...

Passed to plot command for scatterplot

Value

Draws the graphic. No return value.

Author(s)

John Verzani

References

This example comes from the help page for layout.

See Also

layout

Examples

1
2
3

jverzani/UsingR documentation built on Aug. 3, 2020, 11:57 a.m.