SpatialPolygons-class {sp}R Documentation

Class "SpatialPolygons"

Description

class to hold polygon topology (without attributes)

Objects from the Class

Objects can be created by calls to the function SpatialPolygons

Slots

polygons:
Object of class "list"; list elements are all of class Polygons-class
plotOrder:
Object of class "integer"; integer array giving the order in which objects should be plotted
bbox:
Object of class "matrix"; see Spatial-class
proj4string:
Object of class "CRS"; see CRS-class

Extends

Class "Spatial", directly.

Methods

Methods defined with class "SpatialPolygons" in the signature:

[
signature(obj = "SpatialPolygons"): select subset of (sets of) polygons; NAs are not permitted in the row index
plot
\signature(x = "SpatialPolygons", y = "missing"): plot polygons in SpatialPolygons object
summary
\signature(object = "SpatialPolygons"): summarize object

Note

Author(s)

Roger Bivand

References

See Also

SpatialPolygons

Examples

grd <- GridTopology(c(1,1), c(1,1), c(10,10))
polys <- as.SpatialPolygons.GridTopology(grd)
plot(polys)
text(getSpPPolygonsLabptSlots(polys), labels=getSpPPolygonsIDSlots(polys), cex=0.6)

[Package sp version 0.9-12 Index]