View source: R/create.boundary.prevR.r
create.boundary | R Documentation |
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.
create.boundary(
countries = NULL,
multiple = FALSE,
proj = "+proj=longlat +datum=WGS84"
)
countries |
a vector of character string corresponding to the name of
the countries you want to extract from the dataset. If |
multiple |
should the dialog box allow multiple selection
(unused if |
proj |
projection of clusters coordinates used in |
Object of class sp::SpatialPolygons.
The result will be automatically plotted.
TMWorldBorders.
## Not run:
boundary <- create.boundary()
## End(Not run)
boundary <- create.boundary("Burkina Faso")
boundary <- create.boundary("Burkina Faso",
proj = "+proj=utm +zone=30 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"
)
boundary <- create.boundary(countries = c("Burkina Faso", "Ghana", "Benin"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.