shp2bnd | R Documentation |
Converts the geographical information provided in a shape-file into a boundary object (see Chapter 5 of the BayesX Reference Manual)
shp2bnd(shpname, regionnames, check.is.in = TRUE)
shpname |
base filename of the shape-file (including path) |
regionnames |
either a vector of region names or the name of the variable in the dbf-file representing these names |
check.is.in |
test whether some regions are surrounded by other regions ( |
Returns a boundary object, i.e. a list of polygons that form the map. See read.bnd
for more information on the format.
Felix Heinzl, Daniel Sabanes Bove, Thomas Kneib with contributions by Michael Hoehle and Frank Sagerer.
BayesX Reference Manual. Available at https://www.uni-goettingen.de/de/bayesx/550513.html.
write.bnd
, read.bnd
, plotmap
.
## read shapefile into bnd object
shpname <- file.path(find.package("R2BayesX"), "examples", "Northamerica")
north <- shp2bnd(shpname = shpname, regionnames = "COUNTRY")
## draw the map
plotmap(north)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.