% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lexical_analysis.R
\name{plot_lexical_diversity_distribution}
\alias{plot_lexical_diversity_distribution}
\title{Plot Lexical Diversity Distribution}
\usage{
plot_lexical_diversity_distribution(lexdiv_data, metric, title = NULL)
}
\arguments{
\item{lexdiv_data}{Data frame from lexical_diversity_analysis()}

\item{metric}{Metric to plot. Recommended: "MTLD" or "MATTR" (text-length independent)}

\item{title}{Plot title (default: auto-generated)}
}
\value{
A plotly boxplot
}
\description{
Creates a boxplot showing the distribution of a lexical diversity metric.
}
\examples{
\donttest{
abstracts <- TextAnalysisR::SpecialEduTech$abstract[1:10]
tokens <- quanteda::tokens(quanteda::corpus(abstracts))
diversity_result <- lexical_diversity_analysis(tokens, texts = abstracts)
diversity_plot <- plot_lexical_diversity_distribution(
  diversity_result$lexical_diversity, "MTLD"
)
print(diversity_plot)
}
}
\concept{lexical}
