Concatenate Heatmap Annotations

# S3 method for HeatmapAnnotation
c(..., gap = unit(0, "mm"))

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
#> A HeatmapAnnotation object with 2 annotations #> name: heatmap_annotation_24 #> position: column #> items: 10 #> width: 1npc #> height: 15mm #> this object is subsetable #> 5.13831111111111mm extension on the left #> 7.11716666666666mm extension on the right #> #> name annotation_type color_mapping height #> foo continuous vector random 5mm #> bar anno_points() 10mm
ha3 = HeatmapAnnotation(sth = cbind(1:10, 10:1)) ha = c(ha1, ha2, ha3, gap = unit(c(1, 4), "mm")) ha
#> A HeatmapAnnotation object with 3 annotations #> name: heatmap_annotation_24 #> position: column #> items: 10 #> width: 1npc #> height: 30mm #> this object is subsetable #> 5.13831111111111mm extension on the left #> 7.11716666666666mm extension on the right #> #> name annotation_type color_mapping height #> foo continuous vector random 5mm #> bar anno_points() 10mm #> sth continuous matrix random 10mm