Learn R Programming

vetools (version 1.3-28)

get.shape.state: Retrive SHAPE files

Description

These functions retreive the necesary SHAPE files to display the Venezuelan political border or any combination of states.

Usage

get.shape.state(abb, shape.file = "venezuelaestados") get.shape.venezuela(shape.file = "venezuela")

Arguments

abb
a vector of characters containing the two letter abbreviations of the states to load.
shape.file
the base name of the SHAPE file to use.

Value

returns an object of class "SpatialPolygonsDataFrame" that can be plotted using the plot command.

Details

If the parameter abb is missing, then a data frame is shown and returned containing the states names, abbreviations and SHAPE file IDs.

References

Maps where constructed and exported from ArcGIS 2.x.

See Also

get.shape.range, get.Grid.size.

Examples

Run this code
## Get national boudary SHAPE
VE <- get.shape.venezuela()
## Not run: plot(VE, asp=1, axes=T)

## Get list of all available shapes
get.shape.state()

## Get national and statal boudaries SHAPE
VS <- get.shape.state(get.shape.state()$Abb)
## Not run: plot(VS, col="gray80", asp=1, axes=F)

## Retrieve Zone III states
BOAMDA = get.shape.state(c("BO", "AM", "DA"))
## Not run: plot(BOAMDA, add=T, border="darkred", lwd=2, col="pink")

Run the code above in your browser using DataLab