dendro_plot | R Documentation |
dendro_plot
produces a ggplot dendrogram from an hclust object
dendro_plot(hclust_obj, categorical_scale = TRUE)
hclust_obj |
hclust tree to plot |
categorical_scale |
logical whether the x axis should be categorical or not This affects the space around the axes and whether the tree plot will line up with other plots with categorical axes |
This function takes an hclust object and uses ggdendro to produce a ggplot dendrogram.
plot - ggplot2 object
dendro_plot(cluster_res$clustering)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.