rawPlot_timeOfDaySpaghetti: Create Time of Day Spaghetti Plot from a Raw Dataframe

Description Usage Arguments Examples

View source: R/rawPlot_timeOfDaySpaghetti.R

Description

Spaghetti Plot that shows data by hour-of-day.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
rawPlot_timeOfDaySpaghetti(
  df,
  parameter = "pm25",
  tlim = NULL,
  shadedNight = TRUE,
  meanCol = "black",
  meanLwd = 4,
  meanLty = 1,
  highlightDates = c(),
  highlightCol = "dodgerblue",
  ...
)

Arguments

df

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

parameter

variable to be plotted

tlim

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

shadedNight

add nighttime shading

meanCol

color used for the mean line (use NA to omit the mean)

meanLwd

line width used for the mean line

meanLty

line type used for the mean line

highlightDates

dates to be highlighted in YYYYMMDD format

highlightCol

color used for highlighted days

...

additional graphical parameters are passed to the lines() function for day lines

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_timeOfDaySpaghetti(raw,parameter="temperature")

}, silent = FALSE)

## End(Not run)

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