The dendrogram can be renderred. A viewport is created which contains the dendrogram.
grid.dendrogram(
dend,
facing = c("bottom", "top", "left", "right"),
max_height = NULL,
order = c("normal", "reverse"),
...
)
a stats::dendrogram object.
facing of the dendrogram.
maximum height of the dendrogram.
order
additional options
view port that plots dendrogram
-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").