| get_brmap | R Documentation |
Returns a simplified territorial mesh shipped with the package. No network connection is used. Municipal meshes can be selected by milestone edition year; other levels represent the current edition.
get_brmap(
level = "country",
filters = NULL,
output = c("sf", "data.frame", "sp"),
year = NULL,
geo = NULL,
geo_filter = NULL,
as = NULL,
geo.filter = NULL,
class = NULL
)
level |
Geographic level in lower snake case. One of '"country"', '"region"', '"state"', '"state_hex"', '"state_region"', '"intermediate_region"', '"immediate_region"', '"mesoregion"', '"microregion"' or '"municipality"'. |
filters |
Optional named list of code filters. Level shorthands such as 'list(region = 5, state = 50)' are accepted and combined with logical AND. |
output |
Output type: '"sf"', '"data.frame"' or '"sp"'. |
year |
Bundled municipal mesh edition. 'NULL' selects the most recent edition. Historical years are available only for municipalities. |
geo, geo_filter, as |
Deprecated aliases for 'level', 'filters' and 'output'. |
geo.filter, class |
Older deprecated aliases for 'filters' and 'output'. |
An 'sf' object by default. '"data.frame"' removes the geometry; '"sp"' returns a legacy 'Spatial' object and requires package 'sp'.
[brmap_editions()], [join_brmap()], [plot_brmap()]
rio <- get_brmap("state", filters = list(state = 33))
municipalities_2010 <- get_brmap(
"municipality", year = 2010, filters = list(region = 5)
)
plot_brmap(rio)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.