% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_es_interactive.R
\name{plot_es_interactive}
\alias{plot_es_interactive}
\title{Interactive event-study plot with hover details}
\usage{
plot_es_interactive(
  data,
  ci_level = 0.95,
  vline_val = 0,
  hline_val = 0,
  vline_color = "#000",
  hline_color = "#000",
  color = "#B25D91FF",
  fill = "#B25D91FF",
  alpha = 0.2,
  linewidth = 2,
  markersize = 8,
  show_ribbon = TRUE,
  show_simultaneous = FALSE,
  height = NULL,
  width = NULL
)
}
\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). Default is 0.95.}

\item{vline_val}{Numeric location for vertical reference line (default 0).}

\item{hline_val}{Numeric location for horizontal reference line (default 0).}

\item{vline_color}{Color for vertical reference line (default "#000").}

\item{hline_color}{Color for horizontal reference line (default "#000").}

\item{color}{Point and line color (default "#B25D91FF").}

\item{fill}{Ribbon/band fill color (default "#B25D91FF").}

\item{alpha}{Ribbon transparency (default 0.2).}

\item{linewidth}{Line width (default 2).}

\item{markersize}{Marker size (default 8).}

\item{show_ribbon}{Logical; if TRUE, shows confidence interval as a ribbon band (default TRUE).}

\item{show_simultaneous}{Logical; if \code{TRUE}, overlays a second (lighter) ribbon for
the simultaneous bootstrap CI and extends the hover tooltip with simultaneous CI bounds.
Requires \code{bootstrap = TRUE} in the originating \code{run_es()} call.
Default \code{FALSE}.}

\item{height}{Plot height in pixels (default NULL for auto).}

\item{width}{Plot width in pixels (default NULL for auto).}
}
\value{
A \code{plotly} object that can be displayed interactively.
}
\description{
Creates an interactive plotly visualization of event study results with hover-over
displays showing coefficients, confidence intervals, and other details.
}
\details{
The hover tooltip displays:
\itemize{
  \item Relative time to treatment
  \item Point estimate (coefficient)
  \item Confidence interval bounds
  \item Standard error
  \item P-value
  \item Simultaneous CI bounds (when \code{show_simultaneous = TRUE})
}
}
\examples{
\dontrun{
# Assuming res <- run_es(...)
plot_es_interactive(res)
plot_es_interactive(res, ci_level = 0.99, show_ribbon = FALSE)
plot_es_interactive(res, show_simultaneous = TRUE)
}
}
