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("ribbon", "errorbar"), ...)

Arguments

object

An es_result returned by event_study().

ci_level

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

type

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

...

Additional styling arguments; see plot.es_result().

Value

A ggplot object.

Examples

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