plot_dendrogram: Plot Dendrogram with Cluster Highlights

View source: R/visualization.R

plot_dendrogramR Documentation

Plot Dendrogram with Cluster Highlights

Description

Enhanced dendrogram with colored cluster rectangles

Usage

plot_dendrogram(
  hclust_obj,
  k = NULL,
  title = "Hierarchical Clustering Dendrogram"
)

Arguments

hclust_obj

Hierarchical clustering object (hclust or tidy_hclust)

k

Number of clusters to highlight

title

Plot title

Value

Invisibly returns hclust object (plots as side effect)


tidylearn documentation built on Feb. 6, 2026, 5:07 p.m.