Extract.HeatmapAnnotation: Subset the HeatmapAnnotation object

Description Usage Arguments Examples

Description

Subset the HeatmapAnnotation object

Usage

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

Arguments

x

A HeatmapAnnotation-class object.

i

Index of observations.

j

Index of annotations.

Examples

1
2
3
4
5
6
ha = HeatmapAnnotation(foo = 1:10, bar = anno_points(10:1),
	sth = cbind(1:10, 10:1))
ha[1:5, ]
ha[, c("foo", "bar")]
ha[, 1:2]
ha[1:5, c("foo", "sth")]

ComplexHeatmap documentation built on Nov. 14, 2020, 2:01 a.m.