Learn R Programming

SciencesPo (version 0.03.21)

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 matrix containing the polygon values.

encoding

UTF-8

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