grid.dendrogram | R Documentation |
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"), ... )
dend |
a stats::dendrogram object. |
facing |
facing of the dendrogram. |
max_height |
maximum height of the dendrogram. |
order |
order |
... |
additional options |
-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").
view port that plots dendrogram
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.