plot_dendrogram: Plot Dendrogram with Cluster Highlights
Description
Enhanced dendrogram with colored cluster rectangles
Usage
plot_dendrogram(
hclust_obj,
k = NULL,
title = "Hierarchical Clustering Dendrogram"
)
Value
Invisibly returns hclust object (plots as side effect)
Arguments
- hclust_obj
Hierarchical clustering object (hclust or tidy_hclust)
- k
Number of clusters to highlight
- title
Plot title