ggheatmap: generate a heatmap + dendrograms, ggplot2 style

Description Usage Arguments Value Author(s) Examples

Description

generate a heatmap + dendrograms, ggplot2 style

Usage

1
2
ggheatmap(x, hm.colours = c("#ffffcc", "#ffeda0", "#fed976", "#feb24c",
  "#fd8d3c", "#fc4e2a", "#e31a1c", "#bd0026", "#800026"))

Arguments

x

data matrix

hm.colours

vector of colours (optional)

Value

invisibly returns a list of ggplot2 objects. Display them with ggheatmap.show()

Author(s)

Chris Wallace

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## test run
## simulate data
library(mvtnorm)
sigma=matrix(0,10,10)
sigma[1:4,1:4] <- 0.6
sigma[6:10,6:10] <- 0.8
diag(sigma) <- 1
X <- rmvnorm(n=100,mean=rep(0,10),sigma=sigma)
 
## make plot
p <- ggheatmap(X)
 
## display plot
ggheatmap.show(p)

hbc/CHBUtils documentation built on May 17, 2019, 3:07 p.m.