plot_hclust: Custom dendrogram plot

View source: R/plot_hclust.R

plot_hclustR Documentation

Custom dendrogram plot

Description

Make a custom dendrogram plot.

Usage

plot_hclust(
  data,
  cut_num = 5,
  clust_var = TRUE,
  horiz = FALSE,
  labels_track_height = 120,
  main = "",
  ...
)

Arguments

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.

Examples

plot_hclust(mtcars, cut_num = 4, horiz = TRUE, labels_track_height = 1)

JouniVatanen/jmisc documentation built on Jan. 25, 2023, 8:41 p.m.