sp (version 0.9-94)

SpatialPolygons-class: Class "SpatialPolygons"

Description

class to hold polygon topology (without attributes)

Arguments

Objects from the Class

Objects can be created by calls to the function SpatialPolygons

Extends

Class "Spatial", directly.

See Also

SpatialPolygons

Examples

Run this code
grd <- GridTopology(c(1,1), c(1,1), c(10,10))
polys <- as.SpatialPolygons.GridTopology(grd)
plot(polys)
#text(coordinates(polys), labels=sapply(slot(polys, "polygons"), function(i) slot(i, "ID")), cex=0.6)
text(coordinates(polys), labels=row.names(polys))

Run the code above in your browser using DataCamp Workspace