# load library
# library(variancePartition)
# load simulated data:
data(varPartData)
# specify formula
form <- ~ Individual + Tissue + Batch + Age + Height
# Compute Canonical Correlation Analysis (CCA)
# between all pairs of variables
# returns absolute correlation value
C = canCorPairs( form, info)
# Plot correlation matrix
plotCorrMatrix( C )
Run the code above in your browser using DataLab