Learn R Programming

mapStats (version 2.4)

usMap: Shapefile of US state boundaries

Description

Examples are provided using the usMap shapefile with a synthetic dataset.

Arguments

Examples

Run this code
#read the shapefile
#display first five rows of shapefile dataset
#plot the shapefile boundaries

## Not run: 
# usMap <- readShapePoly(system.file("shapes/usMap.shp", package="mapStats")[1])
# head(usMap@data)
# plot(usMap)
# ## End(Not run)

Run the code above in your browser using DataLab