grid.dendrogram: Draw dendrogram under grid system

View source: R/dendrogram.R

grid.dendrogramR Documentation

Draw dendrogram under grid system

Description

The dendrogram can be renderred. A viewport is created which contains the dendrogram.

Usage

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

Arguments

dend

a stats::dendrogram object.

facing

facing of the dendrogram.

max_height

maximum height of the dendrogram.

order

order

...

additional options

Details

-order should leaves of dendrogram be put in the normal order (1, ..., n) or reverse order (n, ..., 1)? -... pass to 'grid::viewport' which contains the dendrogram.

This function only plots the dendrogram without adding labels. The leaves of the dendrogram locates at unit(c(0.5, 1.5, ...(n-0.5))/n, "npc").

Value

view port that plots dendrogram


wheatmap documentation built on March 18, 2022, 6:43 p.m.