View source: R/pas_filterArea.R
pas_filterArea | R Documentation |
Filters pas object sensors based on a bounding box.
pas_filterArea(pas = NULL, w = NULL, e = NULL, s = NULL, n = NULL)
pas |
PurpleAir Synoptic pas object. |
w |
West edge of area bounding box (deg E). |
e |
East edge of area bounding box (deg E). |
s |
South edge of area bounding box (deg N). |
n |
North edge of area bounding box (deg N). |
A subset of the given pas object containing only records within the bounding box. This includes sensors located precisely on a boundary.
pas_filter
pas_filterNear
pas_filterNearMonitor
library(AirSensor2)
pas <- example_pas_pm25
range(pas$longitude)
range(pas$latitude)
Lane_County_pas <-
pas %>%
pas_filterArea(
w = -124.16,
e = -121.76,
s = 43.43,
n = 44.30
)
range(Lane_County_pas$longitude)
range(Lane_County_pas$latitude)
if ( interactive() ) {
pas_leaflet(Lane_County_pas)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.