Description Usage Arguments Value Author(s) Examples
View source: R/get_admin_geoboundaries.R
Get admin boundaries from GeoBoundaries via rgeoboundaries for drawing maps .
1 2 3 4 5 | get_admin_geoboundaries(
country_name = "kenya",
boundary_type = "sscgs",
admin_level
)
|
country_name |
The country name of interest in lower case letters e.g. "kenya" as character string Default value is "kenya" for Kenya. |
boundary_type |
GeoBoundaries allow a choice between Simplified Single Country Unstandardized (sscu) or Simplified Single Country Globally Standardized (sscgs) . Character string. Default is "sscgs" |
admin_level |
Character string selecting the admin level for which to obtain boundaries. Depends on data available from GeoBoundaries. Character string. e.g. "adm1", "adm2", etc. |
An sf object containing shape data for country_name
admin_level
Anelda van der Walt
1 2 | ken_adm3 <- get_admin_geoboundaries(country_name = "kenya",
boundary_type = "sscgs", admin_level = "adm3")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.