monitor_dygraph: Create Interactive Time Series Plot

View source: R/monitor_dygraph.R

monitor_dygraphR 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)

AirMonitor documentation built on Sept. 27, 2024, 9:06 a.m.