This function creates interactive graphs that will be displayed in RStudio's 'Viewer' tab.

monitor_dygraph(
  monitor,
  title = "title",
  ylab = "PM2.5 Concentration",
  rollPeriod = 1,
  showLegend = TRUE
)

Arguments

monitor

mts_monitor object.

title

Title text.

ylab

Title for the y axis

rollPeriod

Rolling mean to be applied to the data.

showLegend

Logical to toggle display of the legend.

Value

Initiates the interactive dygraph plot in RStudio's 'Viewer' tab.

Examples

if (FALSE) {
library(AirMonitor)

# Multiple monitors
Camp_Fire %>%
  monitor_filter(countyName == "Alameda") %>%
  monitor_dygraph()
}