Add Pearson Correlation value to plots

Share:

Description

Adds a pearson correlation value to the scatter plots

Usage

1
	panelCor(x,y, digits=2, prefix="r=")

Arguments

x

matrix of x values

y

matrix of y values to correlate with x

digits

number of digits to display

prefix

The string prefix that should be display on the scatterplot panel

Examples

1
2
3
4
5
#Calculate the median of a matrix omiting NAs
## Not run: 
panelCor(x,y, digits=2, prefix="r=")

## End(Not run)