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

Description Usage Arguments Value Author(s) Examples

Description

Get Row Order from a Heatmap List

Usage

1
2
## S4 method for signature 'HeatmapList'
row_order(object, name = NULL)

Arguments

object

A HeatmapList-class object.

name

Name of a specific heatmap.

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
 8
 9
10
mat = matrix(rnorm(100), 10)
ht_list = Heatmap(mat) + Heatmap(mat)
ht_list = draw(ht_list)
row_order(ht_list)
ht_list = Heatmap(mat, row_km = 2) + Heatmap(mat)
ht_list = draw(ht_list)
row_order(ht_list)
ht_list = Heatmap(mat, row_km = 2) %v% Heatmap(mat)
ht_list = draw(ht_list)
row_order(ht_list)

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]  5  4  9  7  2  3 10  6  1  8
$`2`
[1] 5 4

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

$matrix_5
$matrix_5$`1`
[1] 1 8

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


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

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