Extract.AnnotationFunction: Subset an AnnotationFunction Object

Description Usage Arguments Details Examples

Description

Subset an AnnotationFunction Object

Usage

1
2
## S3 method for class 'AnnotationFunction'
x[i]

Arguments

x

An AnnotationFunction-class object.

i

A vector of indices.

Details

One good thing for designing the AnnotationFunction-class is it can be subsetted, and this is the base for the splitting of the annotations.

Examples

1
2
3
anno = anno_simple(1:10)
anno[1:5]
draw(anno[1:5], test = "subset of column annotation")

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