search for: uscounties

Displaying 1 result from an estimated 1 matches for "uscounties".

Did you mean: us_counties
2011 Apr 03
0
Plotting data on a US County Map
...3 4 US004 5 5 US005 6 6 US006 7 7 US007 9 8 US008 9 9 US009 10 10 US010 11 11 US011 13 12 US012 15"),head=TRUE,stringsAsFactors=FALSE)) library(maptools) library(ggplot2) library(gpclib) gpclibPermit() setwd("C:/Documents") us_counties.shp <- readShapeSpatial("uscounties.shp") us_counties.shp.p <- fortify.SpatialPolygonsDataFrame(us_counties.shp, region="CNTY_FIPS") us <- merge(us_counties.shp.p, us_counties.shp, by.x="id", by.y="CNTY_FIPS") p <- ggplot(data=us, aes(x=long, y=lat, group=group)) + geom_polygon(fill=&qu...