% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/easy_plots.R
\name{easy_barplot}
\alias{easy_barplot}
\title{Annotated Bar Chart}
\usage{
easy_barplot(
  x,
  data,
  group_by = NULL,
  stat = c("count", "mean"),
  fill_palette = NULL,
  title = NULL
)
}
\arguments{
\item{x}{Column name of the variable to plot.}

\item{data}{A data frame.}

\item{group_by}{Optional grouping column for grouped frequency bars.}

\item{stat}{\code{"count"} (default) for frequency, or \code{"mean"} for
mean ± SE bars.}

\item{fill_palette}{Color palette vector. Default EasyStat palette.}

\item{title}{Custom plot title.}
}
\value{
An \code{"easystat_result"} object with \code{plot_object}.
}
\description{
Creates a frequency bar chart for categorical variables, or a mean-and-error
bar chart for numeric outcomes grouped by a factor.
}
