panel.cor: A Panel Function for Pairs to Add Correlation Coefficients

View source: R/norm.plot.r

panel.corR Documentation

A Panel Function for Pairs to Add Correlation Coefficients

Description

Panel functions to add correlation coefficients to half a pairs plot

Usage

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

Arguments

x, y

numeric vectors

digits

number of significant digits to plot

prefix

text to prefix the coefficients

cex.cor

character expansion factor

Value

correlation coefficients for pairs

Examples

pairs(USJudgeRatings, lower.panel = panel.smooth, upper.panel = panel.cor)

PDXChris/pmtools documentation built on July 18, 2024, 7:32 a.m.