Description Usage Arguments Value
Create a time series barplot showing PM2.5 data for the given monitors. The overall plot is faceted by monitor, and each facet has two sets of columns: one for daily levels, and one for hourly levels.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
monitors |
Monitor ID(s) to create plot for. |
data |
Data used to create plot (NOTE: currently must be a 'ws_monitor' object). |
tlim |
Time range to subset the data by. Can either be a character/numeric vector in form of 'yyyymmdd', or a POSIXct object. Defaults to 'NULL' (no subsetting). |
columns |
Number of columns the faceted plot should have (default 1). |
title |
The title of the plot. Defaults to specifying the types of data present in the plot. |
xLabel |
The x-axis label of the plot. Defaults to years present in data. |
yLabel |
The y-axis label of the plot. Defaults to PM2.5. |
includeLink |
Option to include a link to an AQI help page at the bottom of the plot (default 'TRUE'). |
hourlyType |
The type of hourly data to include in the plot. The options include "nowcast" (hourly nowcast values), "raw" (raw hourly values), or "none" (no hourly data at all) (default "nowcast"). |
colorScale |
The ordered color palette used to represent each AQI category. Currently defaults to (and only accepts) "epa_aqi". |
includeThirdCol |
Option to include a third column in the legend. Currently in testing (default 'False'). |
A **ggplot** plot of the given monitors and data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.