pairs | R Documentation |
An enhanced version of the graphics::pairs
function,
incorporating some of the example code from the graphics::pairs
help page
to create upper and lower triangular split showing correlation coefficients
and a trend line.
pairs( x, cor.method = "pearson", trendline = TRUE, loess = FALSE, span = 2/3, line.col = "darkred", gap = 0.5, ... )
x |
A matrix or data/frame. Logical and factor columns are converted to numeric. Character columns are ignored. |
cor.method |
A character string indicating which correlation coefficient (or covariance) is to be computed. One of "pearson" (default), "kendall", or "spearman": can be abbreviated. |
trendline |
A logical argument specifying whether to include a linear trend line. |
loess |
A logical argument specifying whether to include a smoothed trend line. |
gap |
A distance between subplots, in margin lines. |
... |
Arguments to be passed to |
col.smooth |
A color to be used by |
Dave Angelini david.r.angelini@gmail.com [aut, cre]
pairs(ChickWeight)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.