addAQIStackedBar: Create stacked AQI bar

View source: R/addAQIStackedBar.R

addAQIStackedBarR Documentation

Create stacked AQI bar

Description

Draws a stacked bar indicating AQI levels on one side of a plot The monitor_timeseriesPlot function uses this function internally when specifying addAQI = TRUE.

Usage

addAQIStackedBar(
  pollutant = c("PM2.5", "CO", "OZONE", "PM10", "AQI"),
  palette = c("EPA", "subdued", "deuteranopia"),
  width = 0.01,
  height = 1,
  pos = c("left", "right")
)

Arguments

pollutant

EPA AQS criteria pollutant.

palette

Named color palette to use for AQI categories.

width

Width of the bar as a fraction of the width of the plot area.

height

Height of the bar as a fraction of the height of the plot area.

pos

Position of the stacked bar relative to the plot.

Value

No return value, called to add color bars to a time series plot.


AirMonitor documentation built on Aug. 26, 2023, 1:08 a.m.