Get Row Dendrograms from a Heatmap List

# S4 method for HeatmapList
row_dend(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_dend(ht_list)
#> 'dendrogram' with 2 branches and 10 members total, at height 6.001148
ht_list = Heatmap(mat, row_km = 2) + Heatmap(mat) ht_list = draw(ht_list)
row_dend(ht_list)
#> $`1` #> 'dendrogram' with 2 branches and 6 members total, at height 5.060397 #> #> $`2` #> 'dendrogram' with 2 branches and 4 members total, at height 4.86746 #>
ht_list = Heatmap(mat, row_km = 2) %v% Heatmap(mat) ht_list = draw(ht_list)
row_dend(ht_list)
#> $matrix_45 #> $matrix_45$`1` #> 'dendrogram' with 2 branches and 6 members total, at height 5.060397 #> #> $matrix_45$`2` #> 'dendrogram' with 2 branches and 4 members total, at height 4.86746 #> #> #> $matrix_46 #> $matrix_46[[1]] #> 'dendrogram' with 2 branches and 10 members total, at height 6.001148 #> #>