plot_hclust | R Documentation |
Make a custom dendrogram plot.
plot_hclust( data, cut_num = 5, clust_var = TRUE, horiz = FALSE, labels_track_height = 120, main = "", ... )
data |
Choose the dataframe. |
cut_num |
Choose the number where to cut the number of clusters. Default: 5. |
clust_var |
Choose if you want to cluster variables. Default: TRUE. |
horiz |
Plot horizontal (TRUE) or vertical (FALSE). Default: FALSE. |
labels_track_height |
Make extra space for variable names. Default: 120. |
main |
Title for the plot. |
... |
Pass other parameters to fviz_dend like type, cex, ggtheme. |
plot_hclust(mtcars, cut_num = 4, horiz = TRUE, labels_track_height = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.