rawPlot_pollutionRose: Create Pollution Rose Plot from a Raw Dataframe

Description Usage Arguments Note Examples

View source: R/rawPlot_pollutionRose.R

Description

Create pollution rose plot from an enhanced raw dataframe. This function is based on openair::pollutionRose(). If normalized, black line indicates frequency by direction.

Usage

1
2
3
4
5
6
7
8
rawPlot_pollutionRose(
  df,
  parameter = "pm25",
  tlim = NULL,
  localTime = TRUE,
  normalize = FALSE,
  ...
)

Arguments

df

enhanced, raw dataframe as created by the raw_enhance() function

parameter

parameter to plot

tlim

optional vector with start and end times (integer or character representing YYYYMMDD[HH])

localTime

logical specifying whether tlim is in local time or UTC

normalize

normalize slices to fill entire area, allowing for easier comparison of counts of magnitudes by direction

...

additional arguments to pass on to openair::pollutionRose()

Note

If more than one timezone is found, localTime is ignored and UTC is used.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# Fail gracefully if any resources are not available
try({

raw <- airsis_createRawDataframe(20160901, 20161015, 'USFS', 1012)
raw <- raw_enhance(raw)
rawPlot_pollutionRose(raw)

}, silent = FALSE)

## End(Not run)

PWFSLSmoke documentation built on Nov. 23, 2021, 5:06 p.m.