simpleheatmap: heatmap2 facade

Description Usage Arguments Examples

View source: R/simpleheatmap.R

Description

heatmap2 facade

Usage

1
2
3
simpleheatmap(pln, main = "", distf = dist, hclustf = hclust,
  labRow = "", palette = getBlueWhiteRed(), margins = c(5, 5),
  scale = "none", ...)

Arguments

pln

or dataframe with numerical values

main

title

distf

distance function

hclustf

clustering function

labRow

row labels

palette

color palette

margins

control margins of heatmap

scale

c(row, column or none)

...

other parameters to heatmap.2

Examples

1
2
3
4
5
6
7
8
tmp = matrix(rep((1:100),times = 4) + rnorm(100*4,0,3),ncol=4)
mean = c(20,30,10,40)
sd = c(4,3,4,5)
tmp = sweep(tmp,2,sd,"*")
tmp = sweep(tmp,2,mean,"+")
par(mar=c(5,5,5,5))
simpleheatmap(tmp,ColSideColors=c("red","blue","pink","black"))
simpleheatmap(tmp)

protViz/quantable documentation built on Nov. 29, 2021, 10:07 a.m.