correlationWithPhenotypesHeatMap: correlationWithPhenotypesHeatMap

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
2
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

1
2
3
4
5
6
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)

ProCoNA documentation built on Nov. 1, 2018, 3:28 a.m.