draw_dend-Heatmap-method {ComplexHeatmap} | R Documentation

## Draw dendrogram on row or column

### Description

Draw dendrogram on row or column

### Usage

    ## S4 method for signature 'Heatmap'
    draw_dend(object,
        which = c("row", "column"), k = 1, max_height = NULL, ...)

### Arguments

`object` | a `Heatmap-class` object.
`which` | is dendrogram put on the row or on the column of the heatmap?
`k` | a matrix may be splitted by rows, the value identifies which row-slice.
`max_height` | maximum height of the dendrograms.
`...` | pass to `viewport`, basically for defining the position of the viewport.

### Details

If the matrix is split into several row slices, a list of dendrograms will be drawn by the heatmap that each dendrogram corresponds to its row slices.

A viewport is created which contains dendrograms.

This function is only for internal use.

### Value

This function returns no value.

### Author(s)

Zuguang Gu <z.gu@dkfz.de>

### See Also

`grid.dendrogram`

### Examples

    # There is no example
    NULL

[Package ComplexHeatmap version 1.18.1 Index]