Learn R Programming

R2GUESS (version 2.0)

pairwise.correlation: Calculates and plots the pairwise correlation between outcomes

Description

The pairwise.correlation function plots an image with the pairwise correlation between phenotypes and provides the corresponding source matrix.

Usage

pairwise.correlation(Y, label.Y = NULL)

Arguments

Y

data frame or matrix corresponding to the responses.

label.Y

character vector indicating the label of the outcomes. By default (label.Y=NULL) labels of Y are set to colnames(Y).

Value

A matrix of the pairwise correlation between outcomes.

Examples

Run this code
# NOT RUN {
 data(data.Y.Hopx)
    res.cor.Y.Hopx <-
    pairwise.correlation(data.Y.Hopx,label.Y=NULL)$matcor 
# }

Run the code above in your browser using DataLab