R/monitor_ggTimeseries.R
monitor_ggTimeseries.Rd
This function assembles various layers to create a production-ready timeseries plot for one or more monitors.
monitor_ggTimeseries( monitor, startdate = NULL, enddate = NULL, id = NULL, style = c("small", "large"), title = NULL, timezone = NULL, ... )
monitor | A mts_monitor object. |
---|---|
startdate | Desired start date (integer or character in ymd format or POSIXct). |
enddate | Desired end date (integer or character in ymd format or POSIXct). |
id | vector of deviceDeploymentIDs to include in the plot. If more than one, different monitors will be plotted in different colors. |
style | Plot style. |
title | Plot title. If NULL, a suitable title will be constructed. |
timezone | Olson timezone name for x-axis scale and date parsing. If NULL the timezone of the specified monitor will be used. |
... | Arguments passed onto |
A ggplot object.
library(AirMonitorPlots) AirMonitor::NW_Megafires %>% monitor_ggTimeseries( startdate = 20150815, enddate = 20150831, id = "531b93756e48e29c_160690014" )#> Warning: Removed 687 rows containing missing values (geom_pm25points).#> Warning: Removed 681 row(s) containing missing values (geom_path).#> Warning: Removed 358 rows containing missing values (geom_pm25points).#> Warning: Removed 351 row(s) containing missing values (geom_path).