[.HeatmapAnnotation {ComplexHeatmap} | R 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")]

[Package ComplexHeatmap version 2.6.2 Index]