ncmap {sp} | R Documentation

## North Carolina county boundaries (maps)

### Description

North Carolina county boundaries in maps package format

### Usage

    data(ncmap)

### Format

The format is: List of 4 $ x : num [1:3771] -79.5 -79.5 -79.5 -79.5 -79.5 ... $ y : num [1:3771] 35.8 35.9 35.9 36.0 36.2 ... $ range: num [1:4] -84.3 -75.5 33.9 36.6 $ names: chr [1:102] "north carolina,alamance" "north carolina,alexander" ... - attr(*, "class")= chr "map"

### Examples

    ## Not run:
    library(maps)
    ncmap <- map("county", "north carolina", fill=TRUE, col="transparent", plot=FALSE)
    ## End(Not run)
    data(ncmap)
    IDs <- sapply(strsplit(ncmap$names, ","), function(x) x[2])
    nc2 <- as.SpatialPolygons.map(ncmap, IDs)
    plotSpatialPolygons(nc2)
    invisible(text(getSpPPolygonsLabptSlots(nc2), labels=getSpPPolygonsIDSlots(nc2), cex=0.6))

[Package sp version 0.7-12 Index]