usMap: Shapefile of US state boundaries

Description Source Examples

Description

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

Source

http://www.cdc.gov/brfss/maps/gis_data.htm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#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)

mapStats documentation built on May 2, 2019, 6:52 a.m.