Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/get.shape.state.R
These functions retreive the necesary SHAPE files to display the Venezuelan political border or any combination of states.
1 2 | get.shape.state(abb, shape.file = "venezuelaestados")
get.shape.venezuela(shape.file = "venezuela")
|
abb |
a vector of |
shape.file |
the base name of the SHAPE file to use. |
If the parameter abb
is missing
,
then a data frame is shown and returned containing the states names, abbreviations and SHAPE file IDs.
returns an object of class "SpatialPolygonsDataFrame"
that can be plotted using the plot
command.
SHAPE files venezuela and "venezuela estados" have a slight size mismatch:
1 2 3 4 5 6 7 8 | > VE <- get.shape.venezuela()
> VS <- get.shape.state(get.shape.state()$Abb)
> get.shape.range(VE)
Long.start Long.end Lat.start Lat.end
SHAPE -73.3774 -59.7991 0.6498817 12.20108
> get.shape.range(VS)
Long.start Long.end Lat.start Lat.end
SHAPE -73.37749 -59.7991 0.6492503 12.2012
|
R. Ram<c3><ad>rez. Parque Tecnol<c3><b3>gico Sartenejas, Universidad Sim<c3><b3>n Bol<c3><ad>var. Venezuela.
Wrapped in R by A. M. Sajo-Castelli
Maps where constructed and exported from ArcGIS 2.x.
get.shape.range
,
get.Grid.size
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.