Extract.Heatmap: Subset a Heatmap

Description Usage Arguments Details Examples

Description

Subset a Heatmap

Usage

1
2
## S3 method for class 'Heatmap'
x[i, j]

Arguments

x

A Heatmap-class object.

i

Row indices.

j

Column indices.

Details

This functionality is quite experimental. It should be applied before the layout is initialized.

Examples

1
2
3
4
5
6
7
8
m = matrix(rnorm(100), nrow = 10)
rownames(m) = letters[1:10]
colnames(m) = LETTERS[1:10]
ht = Heatmap(m)
ht[1:5, ]
ht[1:5]
ht[, 1:5]
ht[1:5, 1:5]

zhongmicai/complexHeatmap documentation built on May 7, 2019, 6:11 a.m.