row_order-Heatmap-method: Get Row Order from a Heatmap

Description Usage Arguments Value Author(s) Examples

Description

Get Row Order from a Heatmap

Usage

1
2
## S4 method for signature 'Heatmap'
row_order(object)

Arguments

object

A Heatmap-class object.

Value

The format of the returned object depends on whether rows/columns of the heatmaps are split.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

1
2
3
4
5
6
7
mat = matrix(rnorm(100), 10)
ht = Heatmap(mat)
ht = draw(ht)
row_order(ht)
ht = Heatmap(mat, row_km = 2)
ht = draw(ht)
row_order(ht)

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

 [1]  7  6  5  9  2  8  4 10  1  3
$`2`
[1]  7  6  9  2  8 10

$`1`
[1] 5 1 4 3

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