Get Row Order from a Heatmap

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

Examples

mat = matrix(rnorm(100), 10) ht = Heatmap(mat) ht = draw(ht)
#> [1] 10 4 7 1 2 8 6 3 5 9
ht = Heatmap(mat, row_km = 2) ht = draw(ht)
#> $`1` #> [1] 5 8 6 3 9 #> #> $`2` #> [1] 7 1 2 10 4 #>