library(AirMonitor)
# Single monitor
Carmel_Valley %>%
monitor_timeseriesPlot()
# Multiple monitors
Camp_Fire %>%
monitor_filter(countyName == "Alameda") %>%
monitor_timeseriesPlot(main = "All Alameda County Monitors")
# Standard extras
Carmel_Valley %>%
monitor_timeseriesPlot(
shadedNight = TRUE,
addAQI = TRUE
)
addAQILegend()
# Standard extras using the updated PM NAAQS
Carmel_Valley %>%
monitor_timeseriesPlot(
shadedNight = TRUE,
addAQI = TRUE,
NAAQS = "PM2.5_2024"
)
addAQILegend(NAAQS = "PM2.5_2024")
# Fancy plot based on pm2.5 values
pm2.5 <- Carmel_Valley$data[,2]
Carmel_Valley %>%
monitor_timeseriesPlot(
shadedNight = TRUE,
pch = 16,
cex = pmax(pm2.5 / 100, 0.5),
col = aqiColors(pm2.5),
opacity = 0.8
)
addAQILegend(pch = 16, cex = 0.6, bg = "white")
Run the code above in your browser using DataLab