Get Row Order from a Heatmap List

# S4 method for 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.

Examples

mat = matrix(rnorm(100), 10) ht_list = Heatmap(mat) + Heatmap(mat) ht_list = draw(ht_list)
row_order(ht_list)
#> [1] 2 6 1 7 4 5 9 10 3 8
ht_list = Heatmap(mat, row_km = 2) + Heatmap(mat) ht_list = draw(ht_list)
row_order(ht_list)
#> $`1` #> [1] 5 9 10 3 #> #> $`2` #> [1] 2 6 1 7 4 8 #>
ht_list = Heatmap(mat, row_km = 2) %v% Heatmap(mat) ht_list = draw(ht_list)
row_order(ht_list)
#> $matrix_53 #> $matrix_53$`1` #> [1] 5 9 10 3 #> #> $matrix_53$`2` #> [1] 2 6 1 7 4 8 #> #> #> $matrix_54 #> $matrix_54[[1]] #> [1] 2 6 1 7 4 5 9 10 3 8 #> #>