dailyBarplot: Create a daily barplot for a single monitor

Description Usage Arguments Details Value See Also Examples

View source: R/dailyBarplot.R

Description

Create a daily average barplot of PM2.5 values at a location.

This function presents a simplified interface to dailyBarplotBase and collects common options into a set of named styles.

Current styles include:

The returned object may be further amended with **ggplot** elements.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
dailyBarplot(
  ws_monitor,
  startdate = NULL,
  enddate = NULL,
  style = NULL,
  monitorID = NULL,
  currentNowcast = NULL,
  currentPrediction = NULL,
  title = ""
)

Arguments

ws_monitor

ws_monitor object.

startdate

Desired start date (integer or character in Ymd format or POSIXct).

enddate

Desired end date (integer or character in Ymd format or POSIXct).

style

Plot style.

monitorID

Monitor ID of interest. Required if ws_monitor contains more than one monitor.

currentNowcast

Real-time current Nowcast value – for use in plots presented in the PWFSL monitoring site.

currentPrediction

Real-time current prediction for today's daily average – for use in plots presented in the PWFSL monitoring site.

title

Optional title for the plot.

Details

Daily averages are calculated from midnight-to-midnight in monitor local time.

Value

A 'ggplot' plot object with a "daily barplot" for a single monitor.

See Also

dailyBarplotBase

Examples

1
2
3
4
5
NW <- PWFSLSmoke::Northwest_Megafires
dailyBarplot(NW, "2015-07-01", "2015-10-01",
             style = "month",
             monitorID = "160690014_01",
             title = "Daily Average PM2.5\nRuebens, Idaho")

MazamaScience/PWFSLSmokePlots documentation built on Feb. 10, 2020, 9:58 p.m.