| scatterWithHist {davidTiling} | R Documentation |
Scatterplot with histograms of marginal distributions.
scatterWithHist(x, breaks, barcols, xlab, ylab, ...)
x |
numeric matrix with 2 columns. |
breaks |
numeric vector with histogram breaks, see hist. |
barcols |
character vector of length 2, colors for the histogram filling. |
xlab |
characterof length 1, label for x-axis. |
ylab |
characterof length 1, label for y-axis. |
... |
further arguments that get passed on to plot. |
The function is called for its side effect.
W. Huber <huber@ebi.ac.uk>
x = rexp(100)
x = cbind(x, x+0.6*rnorm(length(x)))
scatterWithHist(x,
breaks=seq(min(x),max(x),length=20),
barcols=c("mistyrose", "lightblue"),
xlab="Daffodil", ylab="Petunia", pch=16)