SpatialRings-class {sp} | R Documentation

## Class "SpatialRings"

### Description

class to hold polygon topology (without attributes)

### Objects from the Class

Objects can be created by calls to the function SpatialRings

### Slots

`polygons`:
  Object of class `"list"`; list elements are all of class Srings-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

No methods defined with class "SpatialRings" in the signature.

### Note

### Author(s)

Roger Bivand

### References

### See Also

SpatialRings

### Examples

    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))

[Package sp version 0.7-8 Index]