Learn R Programming

PWFSLSmoke (version 1.0.20)

monitorPlot_timeOfDaySpaghetti: Create Time of Day Spaghetti Plot

Description

Creates a spaghetti plot of PM2.5 levels by hour for one or more days. The average by hour over the period is also calculated and plotted as a thick red line.

Usage

monitorPlot_timeOfDaySpaghetti(ws_monitor, monitorID = NULL, tlim = NULL,
  ylim = NULL, aqiLines = TRUE, shadedNight = TRUE, title = NULL, ...)

Arguments

ws_monitor

ws_monitor object

monitorID

id for a specific monitor in the ws_monitor object

tlim

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

ylim

y limits for the plot

aqiLines

horizontal lines indicating AQI levels

shadedNight

add nighttime shading based on of middle day in selected period

title

plot title

...

additional arguments to pass to lines()

Examples

Run this code
# NOT RUN {
monitorPlot_timeOfDaySpaghetti(Carmel_Valley, tlim=c(20160801,20160809))
# }

Run the code above in your browser using DataLab