View source: R/SpatialPolygons-methods.R
as.SpatialPolygons.PolygonsList | R Documentation |
This function is used in making SpatialPolygons objects from other formats.
as.SpatialPolygons.PolygonsList(Srl, proj4string=CRS(as.character(NA)))
Srl |
A list of Polygons objects |
proj4string |
Object of class |
The functions return a SpatialPolygons object
Roger Bivand
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.