correlationWithPhenotypesHeatMap {ProCoNA} | R Documentation |
Plots a heatmap showing the Pearson correlation of modules with phenotypes.
correlationWithPhenotypesHeatMap(net, phenotypes, modules, plotName, title, textSize)
net |
The ProCoNA network object. |
phenotypes |
Matrix of phenotypic traits, can include character strings (converted to factors). |
modules |
Vector of modules to plot. Default is all modules. |
plotName |
Name of the saved plot, NULL to show on screen. |
title |
Plot title. |
textSize |
The font size of the correlations shown in each module-phenotype pair. |
the module eigenvector correlations
David L Gibbs
data(ProCoNA_Data) #net1 <- buildProconaNetwork("pepnet", peptideData, pow=12) n <- length(samples(net1)) phenotypes <- matrix(rnorm(10*n), nrow=60) moduleCors <- correlationWithPhenotypesHeatMap(net1, phenotypes, modules = 1:7, plotName = "Phenotype Associations", title = "Module-trait relationships", textSize = 0.5)