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

zhongmicai/complexHeatmap documentation built on May 7, 2019, 6:11 a.m.