Aggregates data by month and creates a dual-axis plot showing average deaths per 100,000 and mean PM2.5 concentrations.
plot_ar_pm_monthly(data, save_outputs = FALSE, output_dir = NULL)No return value. Generates a plot and optionally saves files.
A data frame with columns: month, deaths_per_100k, and monthly_avg_pm25. Month names must match month.abb.
Logical. If TRUE, saves the plot as PNG and the aggregated data as CSV. Defaults to FALSE.
Character. Directory path where outputs are saved if save_outputs is TRUE. Must exist. Defaults to NULL.