ht_pos_on_device {ComplexHeatmap}R Documentation

Get the heatmap positions on the graphic device

Description

Get the heatmap positions on the graphic device

Usage

ht_pos_on_device(ht_list, unit = "inch", valueOnly = FALSE)

Arguments

ht_list

A HeatmapList-class object returned by draw,Heatmap-method or draw,HeatmapList-method.

unit

The unit.

valueOnly

Whether only return the numeric values.

Value

It returns a DataFrame object of the positions of every heatmap slice.

Examples

if(interactive()) {
m = matrix(rnorm(100), 10)
ht = Heatmap(m, row_km = 2, column_km = 2)
ht = draw(ht)
pos = ht_pos_on_device(ht)

ComplexHeatmap:::redraw_ht_vp(pos)
}

[Package ComplexHeatmap version 2.6.2 Index]