Learn R Programming

climatehealth (version 1.0.0)

plot_air_pollution_exposure_response: Plot exposure-response relationship with confidence intervals by region

Description

Creates faceted exposure-response plots showing RR with confidence intervals across PM2.5 concentrations for each region

Usage

plot_air_pollution_exposure_response(
  analysis_results,
  max_lag = 14L,
  include_national = TRUE,
  ref_pm25 = 15,
  output_dir = NULL,
  save_plot = FALSE
)

Value

ggplot object

Arguments

analysis_results

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

include_national

Logical. Whether to include national results. Default TRUE.

ref_pm25

Numeric. Reference PM2.5 value to highlight.

output_dir

Character. Directory to save plot.

save_plot

Logical. Whether to save the plot.