panel.corSPpLog: Panel function for pairs-functions

panel.corSPpLogR Documentation

Panel function for pairs-functions

Description

Writes spearman and pearson correlation values, and the respective p-values, on chosen panel. Values are color coded (see Deatils for key).

For log-transformed (log="xy" in pairs-function) input! See panel.corSPp() for linear input.

Usage

panel.corSPpLog(x, y, digits = 2, cex.cor)

Arguments

x, y

values to be correlated, automatically fed to function pairs() or pairs2()

digits

how many significant digits are to be used, passed format() with altered default.

cex.cor

text size, automatically calculated if left empty.

Details

If used with pairs2(), use for upper panel:
pairs2(MATRIX, upper.panel=panel.corSPpLog, log="xy")

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)


cekehe/rappp documentation built on May 17, 2022, 8:54 a.m.