View source: R/get_nabat_grts.R
1 | get_grts_data(grid_frame, query = NULL, only_priority = FALSE)
|
grid_frame |
String name of the grid frame to return. Must be one of: Conus, Canada, Alaska, Mexico, Hawaii, or PuertoRico |
query |
(optional) String Query to apply to the request, for example: "state_n_1='Florida'" |
only_priority |
(optional) Bool defaults to False. Only return NABat priority cells (top 5 |
This function returns a spatial featrue with the selected GRTS Cells. Allows you to select which sampling frame to choose from (Conus, Canada, Alaska, Mexico, Hawaii, or PuertoRico). Optionally you can supply a query string in CQL format (see: https://docs.geoserver.org/stable/en/user/tutorials/cql/cql_tutorial.html).
## Not run: library(nabatr) library(sp) hawaii_grts = get_grts_data('Hawaii') spplot(hawaii_grts, zcol='own_NPS') florida_grts = get_grts_data('Conus', query="state_n_1='Florida'") spplot(florida_grts, zcol="lat") two_counties = get_grts_data('Conus', query="((cnty_n_1='Colorado_Larimer') or (cnty_n_1='Colorado_Jackson'))") spplot(two_counties, zcol='own_STATE') #' CA_priority_grts = get_grts_data('Conus', query="state_n_1='California'", only_priority=TRUE) spplot(CA_priority_grts, zcol="lat") ## End(Not run)GRTS NABat, bats,
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.