grid.dendrogram {wheatmap} | R 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
[Package wheatmap version 0.2.0 Index]