monitor_dygraph: 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
)
Value
Initiates the interactive dygraph plot in RStudio's 'Viewer' tab.
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.
Examples
Run this codeif (FALSE) {
library(AirMonitor)
# Multiple monitors
Camp_Fire %>%
monitor_filter(countyName == "Alameda") %>%
monitor_dygraph()
}
Run the code above in your browser using DataLab