View source: R/monitor_dygraph.R
monitor_dygraph | R Documentation |
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
)
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. |
Initiates the interactive dygraph plot in RStudio's 'Viewer' tab.
## Not run:
library(AirMonitor)
# Multiple monitors
Camp_Fire %>%
monitor_filter(countyName == "Alameda") %>%
monitor_dygraph()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.