View source: R/addAQIStackedBar.R
addAQIStackedBar | R Documentation |
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
.
addAQIStackedBar(
pollutant = c("PM2.5", "CO", "OZONE", "PM10", "AQI"),
palette = c("EPA", "subdued", "deuteranopia"),
width = 0.01,
height = 1,
pos = c("left", "right"),
NAAQS = c("PM2.5_2024", "PM2.5")
)
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. |
NAAQS |
Version of NAAQS levels to use. See Note. |
No return value, called to add color bars to a time series plot.
On February 7, 2024, EPA strengthened the National Ambient Air Quality Standards for Particulate Matter (PM NAAQS) to protect millions of Americans from harmful and costly health impacts, such as heart attacks and premature death. Particle or soot pollution is one of the most dangerous forms of air pollution, and an extensive body of science links it to a range of serious and sometimes deadly illnesses. EPA is setting the level of the primary (health-based) annual PM2.5 standard at 9.0 micrograms per cubic meter to provide increased public health protection, consistent with the available health science. See PM NAAQS update.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.