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

ht_pos_on_device

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)
}

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.