This function uses the data set TMWorldBorders. One or several countries can be selected and will be returned as an object of class sp::SpatialPolygons.
1 2 3 4 5
a vector of character string corresponding to the name of the countries
you want to extract from the dataset. If
should the dialog box allow multiple selection (unused if
map projection to use for the result (longitude and latitude in decimal degrees by default).
proj could be a character string corresponding to a PROJ.4
projection (see https://proj.org/ for more details)
or an object of class sp::CRS.
Object of class sp::SpatialPolygons.
The result will be automatically plotted.
1 2 3 4 5 6 7 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.