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

decorate_heatmap_body

Decorate Heatmap Bodies


Description

Decorate Heatmap Bodies

Usage

decorate_heatmap_body(heatmap, code,
    slice = 1, row_slice = slice, column_slice = 1,
    envir = new.env(parent = parent.frame()))

Arguments

heatmap

Name of the heatmap which is set as name argument in Heatmap function.

code

Code that adds graphics in the selected heatmap body.

slice

Index of the row slice in the heatmap.

row_slice

Index of the row slice in the heatmap.

column_slice

Index of the column slice in the heatmap.

envir

Where to look for variables inside code.

Details

There is a viewport for each slice in each heatmap. This function contructs the name of the viewport, goes to the viewport by seekViewport, runs the code to that viewport and finally goes back to the original viewport.

Value

This function returns no value.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

See Also

Examples

set.seed(123)
Heatmap(matrix(rnorm(100), 10), name = "mat")
decorate_heatmap_body("mat", {
    grid.circle(gp = gpar(fill = "#FF000080"))
})

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.