Skip to contents

S3 method that plots an es_result (from event_study()). It forwards arguments to plot.es_result().

Usage

# S3 method for class 'es_result'
autoplot(
  object,
  ci_level = 0.95,
  type = c("errorbar", "ribbon"),
  time_axis = c("relative", "calendar"),
  ...
)

Arguments

object

An es_result returned by event_study().

ci_level

Confidence level (numeric, e.g., 0.95).

type

Plot type: "errorbar" (default) or "ribbon".

time_axis

"relative" (default) for event time, or "calendar" for the original time values; see plot.es_result().

...

Additional styling arguments; see plot.es_result().

Value

A ggplot object.

Examples

# res <- event_study(...)
# ggplot2::autoplot(res, ci_level = 0.95, type = "ribbon")