scatterdens | R Documentation |
Produce a scatter plot with a histogram or density plot in the margins
scatterdens(x, y, dens.frac = 1/5, ...)
scatterhist(x, y, xlab = "", ylab = "", dens.frac = 1/5, ...)
x, y |
vectors of points to plot. |
dens.frac |
fraction of screen to be taken up by density plots on margins. |
... |
Arguments to be passed to plot. |
xlab, ylab |
labels for x and y axes. |
Eric Archer eric.archer@noaa.gov
Original code by Ken Kleiman
x <- rnorm(100)
y <- rlnorm(100)
op <- par(ask = TRUE)
scatterdens(x, y, xlab = "x", ylab = "y")
par(op)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.