c.HeatmapAnnotation: Concatenate Heatmap Annotations

Description Usage Arguments Details Examples

View source: R/HeatmapAnnotation-class.R

Description

Concatenate Heatmap Annotations

Usage

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

1
2
3
4
5
6
7
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

Example output

Loading required package: grid
========================================
ComplexHeatmap version 2.6.2
Bioconductor page: http://bioconductor.org/packages/ComplexHeatmap/
Github page: https://github.com/jokergoo/ComplexHeatmap
Documentation: http://jokergoo.github.io/ComplexHeatmap-reference

If you use it in published research, please cite:
Gu, Z. Complex heatmaps reveal patterns and correlations in multidimensional 
  genomic data. Bioinformatics 2016.

This message can be suppressed by:
  suppressPackageStartupMessages(library(ComplexHeatmap))
========================================

A HeatmapAnnotation object with 2 annotations
  name: heatmap_annotation_0 
  position: column 
  items: 10 
  width: 1npc 
  height: 15.3514598035146mm 
  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
A HeatmapAnnotation object with 3 annotations
  name: heatmap_annotation_0 
  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

ComplexHeatmap documentation built on Nov. 14, 2020, 2:01 a.m.