Extract.AnnotationFunction: Subset an AnnotationFunction Object

[.AnnotationFunctionR Documentation

Subset an AnnotationFunction Object

Description

Subset an AnnotationFunction Object

Usage

## 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

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

jokergoo/ComplexHeatmap documentation built on Dec. 22, 2024, 8:51 a.m.