correlationWithPhenotypesHeatMap {ProCoNA} | R Documentation

## correlationWithPhenotypesHeatMap

### Description

Plots a heatmap showing the Pearson correlation of modules with phenotypes.

### Usage

    correlationWithPhenotypesHeatMap(net, phenotypes, modules,
        plotName, title, textSize)

### Arguments

`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.

### Value

the module eigenvector correlations

### Author(s)

David L Gibbs

### Examples

    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)

[Package ProCoNA version 1.18.0 Index]