View source: R/monitor_dailyBarplot.R
monitor_dailyBarplot | R Documentation |
Creates a daily barplot of data from a mts_monitor object.
Reasonable defaults are chosen for annotations and plot characteristics.
Users can override any defaults by passing in parameters accepted by
graphics::barplot
.
monitor_dailyBarplot(
monitor = NULL,
id = NULL,
add = FALSE,
addAQI = FALSE,
palette = c("EPA", "subdued", "deuteranopia"),
opacity = NULL,
...,
minHours = 18,
dayBoundary = c("clock", "LST")
)
monitor |
mts_monitor object. |
id |
|
add |
Logical specifying whether to add to the current plot. |
addAQI |
Logical specifying whether to add visual AQI decorations. |
palette |
Named color palette to use when adding AQI decorations. |
opacity |
Opacity to use for bars. |
... |
Additional arguments to be passed to |
minHours |
Minimum number of valid hourly records per day required to
calculate statistics. Days with fewer valid records will be assigned |
dayBoundary |
Treatment of daylight savings time: "clock" uses daylight savings time as defined in the local timezone, "LST" uses "local standard time" all year round. |
No return value. This function is called to draw an air quality daily average plot on the active graphics device.
The underlying axis for this plot is not a time axis so you cannot use this
function to "add" bars on top of a monitor_timeseriesPlot()
. See
the AirMonitorPlots package for more flexibility in plotting.
library(AirMonitor)
Carmel_Valley %>%
monitor_dailyBarplot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.