panel.cor: Calculate correlation for scatterplot matrix

Description Usage Arguments Examples

View source: R/misc.R

Description

Calculate per-variable correlation & p-value, to be used as panel input in pairs etc.

Usage

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

Arguments

x

First variable to compare

y

Second variable to compare

digits

number of decimal places to display

cex.cor

Scaling factor to apply to text

Examples

1
pairs(iris[1:4], pch = 21, bg = c("red", "green3", "blue")[unclass(iris$Species)], upper.panel = panel.cor)

ClairBee/CB.Misc documentation built on June 15, 2021, 11:07 a.m.