% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/topic_modeling.R
\name{plot_topic_probability}
\alias{plot_topic_probability}
\title{Plot Per-Document Per-Topic Probabilities}
\usage{
plot_topic_probability(
  gamma_data,
  top_n = 10,
  use_topic_labels = FALSE,
  colors = NULL,
  ylab = "Topic Proportion",
  base_font_size = 11
)
}
\arguments{
\item{gamma_data}{A data frame with gamma values from calculate_topic_probability().}

\item{top_n}{The number of topics to display (default: 10).}

\item{use_topic_labels}{Logical. If TRUE, use the \code{topic_label} column from \code{gamma_data} for axis labels (falls back to topic number when the column is absent). If FALSE (default), labels are formatted as "Topic N".}

\item{colors}{Optional color palette for topics (default: NULL).}

\item{ylab}{Y-axis label (default: "Topic Proportion").}

\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.}
}
\value{
A ggplot2 object showing a bar plot of topic prevalence.
}
\description{
Generates a bar plot showing the prevalence of each topic across all documents.
}
\concept{topic-modeling}
