panel.cor | R Documentation |
pairs
.This is a function that can be passed to
pairs
to visually depict the correlation
coefficient and its significancy.
panel.cor(x, y, digits = 2,
prefix = "", cex.cor = NULL,
method = c("pearson",
"spearman", "spearmanExact",
"lm", "glmPoisson"),
n.adjust = 1, col.coef = "black",
col.signif = "red",
dbg = 0, ...)
x |
|
y |
|
digits |
number of significant |
prefix |
|
cex.cor |
magnification for the correlation coefficients and
its significance (if |
method |
|
n.adjust |
number of tests to adjust P-values to |
col.coef |
color of coefficient |
col.signif |
color of significance flags |
dbg |
debug level |
... |
other arguments (ignored currently) |
Tomas Sieger
pairs(iris,
upper.panel = function(x,y,..) panel.cor(x, y, n.adjust = ncol(iris) * (ncol(iris) - 1) / 2),
lower.panel = points)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.