Learn R Programming

siar (version 4.2)

panelcor: Adds correlations to a matrix plot

Description

A simple function used by pairs to produce neat looking matrix plots. Not intended for use by those using siar.

Usage

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

Arguments

x
A numeric vector containing data with which to produce correlations
y
A numeric vector containing data with which to produce correlations
digits
Number of digits to display on plot
prefix
Text to add before the correlation
cex.cor
Multiplier for the size of the text on the plot
...
Other arguments