monitor_dygraph {AirMonitor}R Documentation

Create Interactive Time Series Plot

Description

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

Usage

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

## Not run: 
library(AirMonitor)

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

## End(Not run)

[Package AirMonitor version 0.4.0 Index]