c.HeatmapAnnotation {ComplexHeatmap} | R 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

[Package ComplexHeatmap version 2.10.0 Index]