View source: R/general_small_functions.R
panel.corSPp | R Documentation |
Writes spearman and pearson correlation values,
and the respective p-values, on chosen panel.
Values are color coded (see Deatils for key).
For linear input! See panel.corSPpLog()
for log-transformed input.
panel.corSPp(x, y, digits = 2, cex.cor)
x, y |
values to be correlated, automatically fed to function
|
digits |
how many significant digits are to be used,
passed |
cex.cor |
text size, automatically calculated if left empty. |
If used with pairs2()
,
use for upper panel:
pairs2(MATRIX, upper.panel=panel.corSPp)
Color code:
plot(rep(1, 11),10*seq(0,1,0.1)+1 ,col=rainbow(20)[10:20], pch=16, cex=3,
xaxt="n", yaxt="n", ylab="Absolute correlation value", xlab=NA)
axis(2, at=1:11, seq(0,1,0.1), las=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.