Description Usage Arguments Value Examples
returns admin polygons for specified countries and optionally plots map
1 2 3 4 5 6 7 8 9 10 |
country |
a character vector of country names or iso3c character codes. |
level |
which admin level to return |
datasource |
data source, 'geoboundaries' or 'gadm' |
type |
for geoboundaries, boundary type defaults to 'simple' One of 'HPSCU', 'HPSCGS', 'SSCGS', 'SSCU', or 'precise' 'simple' 'precise standard' 'simple standard' Determines the type of boundary link you receive. More on details |
version |
for geoboundaries defaults to the most recent version of geoBoundaries available. The geoboundaries version requested, with underscores. For example, 3_0_0 would return data from version 3.0.0 of geoBoundaries. |
path |
where to save downloaded data for gadm, defaults to tempdir() |
quiet |
for geoboundaries, if TRUE no message while downloading and reading the data. Default to FALSE |
plot |
option to display map 'mapview' for interactive, 'sf' for static |
sf
1 | sfnga2 <- afriadmin("nigeria", level=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.