r - Error using fortify() in ggplot2 -


i creating map using zip code information census data data have each zip code.

i obtained shapefiles zip codes https://www.census.gov/geo/maps-data/data/tiger-cart-boundary.html.

i read in shapefiles using readogr following code:

zip = readogr("c:\\...pathname....\\cb_2013_us_zcta510_500k.shp") 

i running problem when try use fortify can combine information shapefile data.

names(zip) [1] "zcta5ce10"  "affgeoid10" "geoid10"    "aland10"    "awater10"   test = ggplot2::fortify(zip, region="awater10") error in fortify.spatialpolygonsdataframe(zip, region = "awater10") :  `region' not supported 

the error replicated when try of results names(zip). not sure column contains zip code information interested in, tried of them.

my ultimate goal use zip code information ggmap fill in zip codes different colors based on information in data.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -