| ht_pos_on_device {ComplexHeatmap} | R Documentation |
Get the heatmap positions on the graphic device
ht_pos_on_device(ht_list, unit = "inch", valueOnly = FALSE)
ht_list |
A |
unit |
The unit. |
valueOnly |
Whether only return the numeric values. |
It returns a DataFrame object of the positions of every heatmap slice.
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)
}