Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

attach_annotation-Heatmap-method

Attach heatmap annotations to the heatmap


Description

Attach heatmap annotations to the heatmap

Usage

## S4 method for signature 'Heatmap'
attach_annotation(object, ha, side = c("top", "bottom", "left", "right"),
    gap = unit(1, "points"))

Arguments

object

A Heatmap-class object.

ha

A HeatmapAnnotation-class object.

side

Which side of the heatmap. Value should be in "top", "bottom", "left", "right".

gap

Space between the two heatmap annotations.

Examples

m = matrix(rnorm(100), 10)
ht = Heatmap(m)
ha = HeatmapAnnotation(foo = 1:10)
ht = attach_annotation(ht, ha)
ht
ha2 = HeatmapAnnotation(bar = letters[1:10])
ht = attach_annotation(ht, ha2)
ht

ComplexHeatmap

Make Complex Heatmaps

v2.6.2
MIT + file LICENSE
Authors
Zuguang Gu
Initial release
2020-11-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.