% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lexical_analysis.R
\name{plot_pos_frequencies}
\alias{plot_pos_frequencies}
\title{Plot Part-of-Speech Tag Frequencies}
\usage{
plot_pos_frequencies(
  pos_data,
  top_n = 20,
  title = "Part-of-Speech Tag Frequency",
  color = "#337ab7",
  height = 500,
  width = NULL
)
}
\arguments{
\item{pos_data}{Data frame containing POS data with columns:
\itemize{
\item \code{pos}: Part-of-speech tag
\item \code{n}: (optional) Pre-computed frequency count
}
If \code{n} is not present, frequencies will be computed from the data.}

\item{top_n}{Number of top POS tags to display (default: 20)}

\item{title}{Plot title (default: "Part-of-Speech Tag Frequency")}

\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 bar plot showing the frequency distribution of part-of-speech tags.
}
\examples{
if (interactive()) {
  pos_df <- data.frame(
    pos = c("NOUN", "VERB", "ADJ", "ADV", "PRON"),
    n = c(500, 400, 250, 150, 100)
  )
  plot_pos_frequencies(pos_df)
}
}
\concept{visualization}
