set.seed(123)
small_mat <- matrix(rnorm(56), nrow = 7L)
stack_layout(small_mat, "h", "align") + align_dendro()
# ggstack is an alias for `stack_layout`
ggstack(small_mat, "h", "align") + align_dendro()
# this is the same with:
stack_align(small_mat, "h") + align_dendro()
Run the code above in your browser using DataLab