\HeaderA{ncmap}{North Carolina county boundaries (maps)}{ncmap}
\keyword{datasets}{ncmap}
\begin{Description}\relax
North Carolina county boundaries in maps package format
\end{Description}
\begin{Usage}
\begin{verbatim}data(ncmap)\end{verbatim}
\end{Usage}
\begin{Format}\relax
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"
\end{Format}
\begin{Examples}
\begin{ExampleCode}
## 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))
\end{ExampleCode}
\end{Examples}

