ht_pos_on_device: Get the heatmap positions on the graphic device

Description Usage Arguments Value Examples

View source: R/interactive.R

Description

Get the heatmap positions on the graphic device

Usage

1
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

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

Example output

Loading required package: grid
========================================
ComplexHeatmap version 2.6.2
Bioconductor page: http://bioconductor.org/packages/ComplexHeatmap/
Github page: https://github.com/jokergoo/ComplexHeatmap
Documentation: http://jokergoo.github.io/ComplexHeatmap-reference

If you use it in published research, please cite:
Gu, Z. Complex heatmaps reveal patterns and correlations in multidimensional 
  genomic data. Bioinformatics 2016.

This message can be suppressed by:
  suppressPackageStartupMessages(library(ComplexHeatmap))
========================================

ComplexHeatmap documentation built on Nov. 14, 2020, 2:01 a.m.