Extract.HeatmapAnnotation: Subset the HeatmapAnnotation object

[.HeatmapAnnotationR Documentation

Subset the HeatmapAnnotation object

Description

Subset the HeatmapAnnotation object

Usage

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

Arguments

x

A HeatmapAnnotation-class object.

i

Index of observations.

j

Index of annotations.

Examples

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")]

jokergoo/ComplexHeatmap documentation built on Sept. 24, 2024, 4:48 p.m.