grid.dendrogram2 {ComplexHeatmap} | R Documentation

## Draw dendrogram under grid system

### Description

Draw dendrogram under grid system

### Usage

    grid.dendrogram2(dend, facing = c("bottom", "top", "left", "right"),
        max_height = NULL, order = c("normal", "reverse"), ...)

### Arguments

`dend` | a `dendrogram` object which has been adjusted by `adjust_dend_by_leaf_width`, or else it will be sent back to `grid.dendrogram`.
`facing` | same as in `grid.dendrogram`.
`max_height` | same as in `grid.dendrogram`.
`order` | same as in `grid.dendrogram`.
`...` | same as in `grid.dendrogram`.

### Author(s)

Zuguang gu <z.gu@dkfz.de>

### Examples

    m = matrix(rnorm(100), 10)
    dend = as.dendrogram(hclust(dist(m)))
    dend = adjust_dend_by_leaf_width(dend, width = 1:10)
    grid.dendrogram2(dend)

[Package ComplexHeatmap version 1.20.0 Index]