Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Extract.Heatmap

Subset a Heatmap


Description

Subset a Heatmap

Usage

## 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

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]

ComplexHeatmap

Make Complex Heatmaps

v2.6.2
MIT + file LICENSE
Authors
Zuguang Gu
Initial release
2020-11-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.