Learn R Programming

SciencesPo (version 0.3.8.27)

get.poly: Get Polygons from a Shapefile

Description

It produces an object with polygons that can be used to overprint values on the plot.

Usage

get.poly(x)

Arguments

x
is the shapefile object.

Value

  • A maxtirx containing the polygon values.

References

www.metodologiapolitica.com.br

Examples

Run this code
sids <- maptools::readShapePoly(system.file("shapes/sids.shp",
package="maptools") )

plot(poly <- get.poly(sids))

Run the code above in your browser using DataLab