| plot_stocks | R Documentation |
Visualize the adjusted close prices or abnormal returns of selected stocks around a specified event date.
plot_stocks(
task,
target_variable = "firm_adjusted",
add_event_date = FALSE,
max_symbols = 6,
sample_symbols = TRUE,
do_sample = NULL
)
task |
An EventStudyTask object. |
target_variable |
A character string specifying the target variable to plot. Default is "firm_adjusted". |
add_event_date |
Add vertical line for event date (TRUE/FALSE). |
max_symbols |
An integer specifying the maximum number of symbols to display. Default is 6. |
sample_symbols |
Logical; if |
do_sample |
Deprecated. Renamed to |
A plotly plot object.
Other eventstudy-plots:
es_colours,
plot_car_distribution(),
plot_diagnostics(),
plot_event_study(),
theme_eventstudy()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.