% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/visualization.R
\name{plot_dendrogram}
\alias{plot_dendrogram}
\title{Plot Dendrogram with Cluster Highlights}
\usage{
plot_dendrogram(
  hclust_obj,
  k = NULL,
  title = "Hierarchical Clustering Dendrogram"
)
}
\arguments{
\item{hclust_obj}{Hierarchical clustering object (hclust or tidy_hclust)}

\item{k}{Number of clusters to highlight}

\item{title}{Plot title}
}
\value{
Invisibly returns the \code{\link[stats]{hclust}} object. The
dendrogram is drawn as a side effect.
}
\description{
Enhanced dendrogram with colored cluster rectangles
}
\examples{
\donttest{
hc <- hclust(dist(iris[, 1:4]))
plot_dendrogram(hc, k = 3)
}
}
