% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_state_frequencies.R
\name{state_freq}
\alias{state_freq}
\alias{print.state_freq}
\alias{plot.state_freq}
\alias{as.data.frame.state_freq}
\title{Print, Plot, and Convert a state_freq Object}
\usage{
\method{print}{state_freq}(x, digits = 1, max_states = 20L, ...)

\method{plot}{state_freq}(x, ...)

\method{as.data.frame}{state_freq}(x, ...)
}
\arguments{
\item{x}{A \code{state_freq} object.}

\item{digits}{Number of decimal places for proportion / share columns.}

\item{max_states}{Cap on rows shown per group in the per-state table.
The full table remains available via \code{x$table}.}

\item{...}{Unused.}
}
\value{
\code{print()} returns \code{invisible(x)}; \code{plot()} returns
\code{invisible(NULL)} after drawing; \code{as.data.frame()} returns
\code{x$table}.
}
\description{
\code{plot_state_frequencies()} returns a \code{state_freq} object holding
both the rendered chart and the tidy frequency table. \code{print()} shows
the table in the console, \code{plot()} renders the chart, and
\code{as.data.frame()} returns the tidy table for downstream piping.
}
