ComplexHeatmap (version 1.10.2)

decorate_title: Decorate the heatmap title

Description

Decorate the heatmap title

Usage

decorate_title(heatmap, code, slice = 1, which = c("column", "row"))

Arguments

heatmap
name of the heatmap
code
code that adds graphics in the selected heatmap body
slice
index of row slices in the heatmap
which
on rows or on columns?

Value

  • The function returns no value.

Details

There is a viewport for row titles and column title in the heatmap. This function contructs the name of the viewport, goes to the viewport by seekViewport and applies code to that viewport.

Examples

Run this code
set.seed(123)
Heatmap(matrix(rnorm(100), 10), name = "mat", km = 2)
decorate_title("mat", {
    grid.rect(gp = gpar(fill = "#FF000080"))
}, which = "row", slice = 2)

Run the code above in your browser using DataCamp Workspace