summary_plot: Generate a summary plot of individual station CAAQS values,...

View source: R/plot.R

summary_plotR Documentation

Generate a summary plot of individual station CAAQS values, grouped by Airzone

Description

Generate a summary plot of individual station CAAQS values, grouped by Airzone

Usage

summary_plot(
  data,
  metric_val,
  station,
  airzone,
  parameter,
  base_size = 12,
  pt_size = 4,
  az_labeller = label_value,
  ...
)

Arguments

data

a data frame with columns for the metric value, the station name, and the air zone

metric_val

name of column in data containing the CAAQS metric value for each station

station

name of column in data containing monitoring station names

airzone

name of column in data containing arizones

parameter

the name of the column containing the parameter(s) of interest

base_size

base font size (default 12)

pt_size

size of points (default 4)

az_labeller

ggplot2 labeller function to customize the airzone labels. Default label_value (i.e., no formatting of Airzone names). See ggplot2::label_value()

...

options passed on to theme()

Value

ggplot2 object


bcgov/rcaaqs documentation built on Dec. 12, 2023, 9:21 a.m.