Retrieve map data to pass to the maps
argument of the fig_map() function.
get_gadm_data(iso3c, level = c(0, 1, 2, 3, 4), keep = 0.05) get_map_data(region = ".", level = c("region", "subregion"), name = "world") get_world_map()
| iso3c | Iso3c code of the country to retrieve, e.g.: |
|---|---|
| level | Level of the polygons to draw, either the region or subregion. |
| keep | Proportion of points to retain, it is highly recommended
to reduce the detail of the map or it will take too long to load in the
browser. Set to |
| region | Character vector that names the polygons to draw. |
| name | Name of the database to use. |
get_gadm_data: Retrieves country-level data from gadm.org.
get_map_data: Uses the maps::map() function to retrieve the map data, similar to ggplot2::map_data.
get_world_map: Retrives a world map (from GeoJSON).