% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_es.R
\name{plot_es}
\alias{plot_es}
\title{Plot event-study results with ribbons or error bars}
\usage{
plot_es(
  data,
  ci_level = 0.95,
  type = "ribbon",
  vline_val = 0,
  vline_color = "#000",
  hline_val = 0,
  hline_color = "#000",
  linewidth = 1,
  pointsize = 2,
  alpha = 0.2,
  barwidth = 0.2,
  color = "#B25D91FF",
  fill = "#B25D91FF",
  theme_style = "bw",
  show_simultaneous = FALSE
)
}
\arguments{
\item{data}{An object of class \code{es_result} returned by \code{run_es()}.}

\item{ci_level}{Confidence level to display (e.g., 0.95).}

\item{type}{One of \code{"ribbon"} (default) or \code{"errorbar"}.}

\item{vline_val, hline_val}{Numeric locations for vertical/horizontal reference lines (default 0).}

\item{vline_color, hline_color}{Colors for reference lines.}

\item{linewidth, pointsize, alpha, barwidth}{Styling parameters for lines/points/bands/bars.}

\item{color, fill}{Optional, override line/point color and ribbon fill.}

\item{theme_style}{One of \code{"bw"}, \code{"minimal"}, or \code{"classic"} for ggplot theme.}

\item{show_simultaneous}{Logical; if \code{TRUE}, overlays the simultaneous bootstrap CI
(lighter band, alpha 0.15) alongside the standard pointwise CI (alpha 0.3), with a
legend distinguishing the two bands.  Requires \code{bootstrap = TRUE} in the
originating \code{run_es()} call.  Default \code{FALSE}.}
}
\value{
A \code{ggplot} object.
}
\description{
Plot event-study results with ribbons or error bars
}
\examples{
# Assuming `res <- run_es(...)`
# p <- plot_es(res, ci_level = 0.95, type = "ribbon")
# print(p)
}
