panel.corSPp: Panel function for pairs-functions

View source: R/general_small_functions.R

panel.corSPpR 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 linear input! See panel.corSPpLog() for log-transformed input.

Usage

panel.corSPp(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.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)


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