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

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

if (FALSE) { # 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) }