% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/topic_modeling.R
\name{plot_word_probability}
\alias{plot_word_probability}
\title{Plot Word Probabilities by Topic}
\usage{
plot_word_probability(
  top_topic_terms,
  topic_label = NULL,
  ncol = 3,
  height = 1200,
  width = 800,
  ylab = "Word probability",
  title = NULL,
  colors = NULL,
  measure_label = "Beta",
  base_font_size = 11,
  ...
)
}
\arguments{
\item{top_topic_terms}{A data frame containing topic terms with columns: topic, term, and beta.}

\item{topic_label}{Optional topic labels. Can be either a named vector mapping topic numbers
to labels, or a character string specifying a column name in top_topic_terms (default: NULL).}

\item{ncol}{Number of columns for facet wrap layout (default: 3).}

\item{height}{Plot height for responsive spacing adjustments (default: 1200).}

\item{width}{Plot width for responsive spacing adjustments (default: 800).}

\item{ylab}{Y-axis label (default: "Word probability").}

\item{title}{Plot title (default: NULL for auto-generated title).}

\item{colors}{Color palette for topics (default: NULL for auto-generated colors).}

\item{measure_label}{Label for the probability measure (default: "Beta").}

\item{base_font_size}{Base font size in points for the plot theme (default: 11). Axis text and strip text will be base_font_size + 2.}

\item{...}{Additional arguments (currently unused, kept for compatibility).}
}
\value{
A ggplot2 object showing word probabilities faceted by topic.
}
\description{
Creates a faceted bar plot showing the top terms and their probabilities (beta values)
for each topic in a topic model.
}
\concept{topic-modeling}
