Extract.SingleAnnotation: Subset an SingleAnnotation Object

[.SingleAnnotationR Documentation

Subset an SingleAnnotation Object

Description

Subset an SingleAnnotation Object

Usage

## S3 method for class 'SingleAnnotation'
x[i]

Arguments

x

An SingleAnnotation-class object.

i

A vector of indices.

Details

The SingleAnnotation class object is subsettable only if the containing AnnotationFunction-class object is subsettable. All the anno_* functions are subsettable, so if the SingleAnnotation object is constructed by one of these functions, it is also subsettable.

Examples

ha = SingleAnnotation(value = 1:10)
ha[1:5]
draw(ha[1:5], test = "ha[1:5]")

jokergoo/ComplexHeatmap documentation built on Nov. 17, 2023, 11:27 a.m.