View source: R/01-core-utilities.R
| get_region_boundary | R Documentation |
Universal function to get region boundaries for any geographic area including US states, countries, CONUS, counties, or custom bounding boxes with comprehensive error handling.
get_region_boundary(region_def, verbose = FALSE)
region_def |
Region definition in various formats:
|
verbose |
Print progress messages |
sf object with boundary geometry
# US State with error handling
ohio_boundary <- get_region_boundary("Ohio")
# Custom bounding box with validation
custom_area <- get_region_boundary(c(-84.5, 39.0, -82.0, 41.0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.