Learn R Programming

climatehealth (version 1.0.0)

plot_regional_trends: Plot regional trends of a climate and healthoutcome.

Description

Plot regional trends of a climate and healthoutcome.

Usage

plot_regional_trends(
  df,
  region_col,
  outcome_cols,
  title = "Regional Averages",
  ylabs = NULL,
  save_plot = FALSE,
  output_path = ""
)

Arguments

df

The dataframe containing the raw data.

region_col

The name of the column containing regions.

outcome_cols

Character Vector. The names of the outcome columns to analyse.

title

The title of your plot.

ylabs

A character vector of y-axis labels (e.g., with units) corresponding to the columns.

save_plot

Whether or not to save the plot.

output_path

The path to output the plot to.