Creates both Attributable Number (AN) and Attributable Rate (AR) plots aggregated by year in a single function call.
plot_air_pollution_an_ar_by_year(
analysis_results,
max_lag = 14L,
include_national = TRUE,
output_dir = NULL,
save_plot = FALSE
)List with two ggplot objects: an_plot and ar_plot
Results from analyze_air_pollution_daily
Integer. Maximum lag. Defaults to 14.
Logical. Whether to include national results. Default TRUE.
Character. Directory to save plot
Logical. Whether to save