Learn R Programming

MiChip (version 1.26.0)

panelCor: Add Pearson Correlation value to plots

Description

Adds a pearson correlation value to the scatter plots

Usage

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

Run this code

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

Run the code above in your browser using DataLab