View source: R/add_dendrogram.R
add_dendrogram | R Documentation |
Add dendrogram to ggplot object.
add_dendrogram(plt, dendro, dend_col = "black", dend_lwd = 0.3, dend_lty = 1)
plt |
ggplot object to add dendrogram to. |
dendro |
Dendrogram segment and node data obtained from the |
dend_col |
String specifying colour of dendrogram (used if the colours have not been changed using other options). |
dend_lwd |
Line width of dendrogram segments (used if not changed using other options). |
dend_lty |
Line type of dendrogram (used if not changed using other options). |
A ggplot object with a dendrogram added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.