Learn R Programming

climatehealth (version 1.0.0)

plot_air_pollution_forest_by_lag: Plot Relative Risk (RR) by lag

Description

Plot Relative Risk (RR) by lag

Usage

plot_air_pollution_forest_by_lag(
  analysis_results,
  max_lag = 14L,
  output_dir = NULL,
  save_plot = FALSE
)

Value

ggplot object

Arguments

analysis_results

Processed results with RR/AF/AN/AR with lag variables

max_lag

Integer. Maximum lag days. Defaults to 14.

output_dir

Character. Directory to save plot. Defaults to NULL.

save_plot

Logical. Whether to save the plot. Defaults to FALSE.