% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/topic_modeling.R
\name{plot_cluster_terms}
\alias{plot_cluster_terms}
\title{Plot Cluster Top Terms}
\usage{
plot_cluster_terms(
  terms,
  cluster_id = NULL,
  title = NULL,
  n_terms = 10,
  color = "#337ab7",
  height = 500,
  width = NULL
)
}
\arguments{
\item{terms}{Named numeric vector of term frequencies, or data frame with
'term' and 'frequency' columns}

\item{cluster_id}{Cluster identifier for the title (default: NULL)}

\item{title}{Custom title (default: NULL, auto-generated from cluster_id)}

\item{n_terms}{Number of top terms to display (default: 10)}

\item{color}{Bar color (default: "#337ab7")}

\item{height}{Plot height in pixels (default: 500)}

\item{width}{Plot width in pixels (default: NULL for auto)}
}
\value{
A plotly object
}
\description{
Creates a horizontal bar plot showing the top terms in a cluster or document group.
}
\concept{visualization}
