Learn R Programming

mapStats (version 2.3)

usMap: Shapefile of US state boundaries

Description

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

Arguments

source

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

Examples

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

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

Run the code above in your browser using DataLab