kdepairs | R Documentation |
Scatterplot matrix with 2D kernel density.
kdepairs(x, ...)
## Default S3 method:
kdepairs(x, n=25, density=TRUE, contour=TRUE, ...)
## S3 method for class 'rsf'
kdepairs(x, n=25, density=TRUE, contour=TRUE, ...)
x |
a matrix or data frame (or a fitted model object of class |
n |
number of bins to be used in kernel density estimation. |
density |
logical, if shades corresponding to densities should be plotted. |
contour |
logical, if contour on top of shades should be plotted. |
... |
other possible arguments passed to |
Produces a scatterplot matrix with histograms in diagonal, 2D kernel
density estimates and contours in the lower half and bivariate scatterplots
with lowess smooth curves and Pearson correlation values
in the upper half as a side effect.
Returns NULL
invisibly.
Peter Solymos
pairs
, lowess
, kde2d
, contour
kdepairs(iris[1:4])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.