| plot_es | R Documentation |
Plot event-study results with ribbons or error bars
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
)
data |
An object of class |
ci_level |
Confidence level to display (e.g., 0.95). |
type |
One of |
vline_val, hline_val |
Numeric locations for vertical/horizontal reference lines (default 0). |
vline_color, hline_color |
Colors for reference lines. |
linewidth, pointsize, alpha, barwidth |
Styling parameters for lines/points/bands/bars. |
color, fill |
Optional, override line/point color and ribbon fill. |
theme_style |
One of |
show_simultaneous |
Logical; if |
A ggplot object.
# Assuming `res <- run_es(...)`
# p <- plot_es(res, ci_level = 0.95, type = "ribbon")
# print(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.