Get Column Dendrograms from a hHeatmap List

# S4 method for HeatmapList
column_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)
column_dend(ht_list)
#> $matrix_18 #> 'dendrogram' with 2 branches and 10 members total, at height 6.1987 #> #> $matrix_19 #> 'dendrogram' with 2 branches and 10 members total, at height 6.1987 #>
ht_list = Heatmap(mat, column_km = 2) + Heatmap(mat, column_km = 2) ht_list = draw(ht_list)
column_dend(ht_list)
#> $matrix_20 #> $matrix_20$`1` #> 'dendrogram' with 2 branches and 7 members total, at height 6.051528 #> #> $matrix_20$`2` #> 'dendrogram' with 2 branches and 3 members total, at height 4.806148 #> #> #> $matrix_21 #> $matrix_21$`1` #> 'dendrogram' with 2 branches and 3 members total, at height 6.1987 #> #> $matrix_21$`2` #> 'dendrogram' with 2 branches and 7 members total, at height 5.00071 #> #>
ht_list = Heatmap(mat) %v% Heatmap(mat) ht_list = draw(ht_list)
column_dend(ht_list)
#> 'dendrogram' with 2 branches and 10 members total, at height 6.1987
ht_list = Heatmap(mat, column_km = 2) %v% Heatmap(mat) ht_list = draw(ht_list)
column_dend(ht_list)
#> $`1` #> 'dendrogram' with 2 branches and 3 members total, at height 6.1987 #> #> $`2` #> 'dendrogram' with 2 branches and 7 members total, at height 5.00071 #>