c.HeatmapAnnotation: Concatenate Heatmap Annotations

View source: R/HeatmapAnnotation-class.R

c.HeatmapAnnotationR Documentation

Concatenate Heatmap Annotations

Description

Concatenate Heatmap Annotations

Usage

## S3 method for class 'HeatmapAnnotation'
c(..., gap = unit(1, "points"))

Arguments

...

HeatmapAnnotation-class objects.

gap

Gap between the groups of annotations.

Details

The heatmap annotations should have same number of observations.

Examples

ha1 = HeatmapAnnotation(foo = 1:10)
ha2 = HeatmapAnnotation(bar = anno_points(10:1))
ha = c(ha1, ha2)
ha
ha3 = HeatmapAnnotation(sth = cbind(1:10, 10:1))
ha = c(ha1, ha2, ha3, gap = unit(c(1, 4), "mm"))
ha

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