SpatialRings-class {sp} | R Documentation |
class to hold polygon topology (without attributes)
Objects can be created by calls to the function SpatialRings
polygons
:"list"
; list elements are
all of class Srings-classplotOrder
:"integer"
; integer array
giving the order in which objects should be plotted bbox
:"matrix"
; see Spatial-class proj4string
:"CRS"
; see CRS-class
Class "Spatial"
, directly.
No methods defined with class "SpatialRings" in the signature.
Roger Bivand
data(ncshp) nc1 <- as.SpatialRings.Shapes(nc.shp$Shapes, as.character(nc.shp$att.data$FIPS)) plotSpatialRings(nc1) invisible(text(getSRSringsLabptSlots(nc1), labels=getSRSringsIDSlots(nc1), cex=0.6)) data(ncmap) IDs <- sapply(strsplit(ncmap$names, ","), function(x) x[2]) nc2 <- as.SpatialRings.map(ncmap, IDs) plotSpatialRings(nc2) invisible(text(getSRSringsLabptSlots(nc2), labels=getSRSringsIDSlots(nc2), cex=0.6)) data(co37_d90_arc) data(co37_d90_pal) data(co37_d90_pat) IDs <- paste(pat$ST[-1], pat$CO[-1], sep="") nc3 <- as.SpatialRings.pal(arc, pal, IDs=IDs) plotSpatialRings(nc3) invisible(text(getSRSringsLabptSlots(nc3), labels=getSRSringsIDSlots(nc3), cex=0.6))