% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lexical_analysis.R
\name{plot_morphology_feature}
\alias{plot_morphology_feature}
\title{Plot Morphology Feature Distribution}
\usage{
plot_morphology_feature(data, feature, title = NULL, colors = NULL)
}
\arguments{
\item{data}{Data frame with morph_* columns from extract_morphology().}

\item{feature}{Character; feature name (e.g., "Number", "Tense").}

\item{title}{Character; plot title (auto-generated if NULL).}

\item{colors}{Named character vector of custom colors for feature values.}
}
\value{
A plotly object.
}
\description{
Creates a bar chart showing the distribution of a morphological feature
using consistent package styling.
}
\examples{
if (interactive()) {
  tokens <- quanteda::tokens(TextAnalysisR::SpecialEduTech$abstract[1])
  morphology_data <- extract_morphology(tokens)
  plot_morphology_feature(morphology_data, "Tense")
}
}
\concept{lexical}
