plot_module_trait_cor: Plot a heatmap of module-trait correlations

View source: R/gcn_inference.R

plot_module_trait_corR Documentation

Plot a heatmap of module-trait correlations

Description

Plot a heatmap of module-trait correlations

Usage

plot_module_trait_cor(corandp, palette = "RdYlBu", transpose = FALSE)

Arguments

corandp

A data frame of module-trait correlations as returned by module_trait_cor().

palette

Character indicating which RColorBrewer palette to use. Default: 'RdYlBu'.

transpose

Logical indicating whether to transpose the heatmap or not.

Details

Significance levels: 1 asterisk: significant at alpha = 0.05. 2 asterisks: significant at alpha = 0.01. 3 asterisks: significant at alpha = 0.001. no asterisk: not significant.

Value

A 'Heatmap' object created by ComplexHeatmap::pheatmap().

Examples

data(filt.se)
gcn <- exp2gcn(filt.se, SFTpower = 18, cor_method = "pearson")
corandp <- module_trait_cor(filt.se, MEs = gcn$MEs)
plot_module_trait_cor(corandp)

almeidasilvaf/BioNERO documentation built on March 25, 2024, 9:14 p.m.