decorate_title: Decorate the heatmap title

Description Usage Arguments Details Value Author(s) Examples

Description

Decorate the heatmap title

Usage

1
2
decorate_title(heatmap, code, slice = 1, which = c("column", "row"),
    envir = new.env(parent = parent.frame()))

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?

envir

where to look for variables inside code

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.

Value

The function returns no value.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

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

eilslabs/ComplexHeatmap documentation built on May 16, 2019, 1:21 a.m.