Description Usage Arguments Examples
View source: R/getshapefiles.R
This function returns a dataframe with map data for every zip code in a particular state.
1 2 | getStateZip(state, directory = "shapefiles", region = c("ZCTA5CE10",
"STATEFP10", "GEOID10", "CLASSFP10"))
|
state |
string with the abbreviation of the state (e.g. "GA") |
directory |
directory where shapefiles are located, or directory for shapefiles to be downloaded into, defaults to "shapefiles" |
region |
region to use with the fortify() function, defaults to "ZCTA5CE10". Choices are "ZCTA5CE10", "STATEFP10", "GEOID10", "CLASSFP10". |
1 2 | map <- getStateZip("GA")
makemap(data=d, map = map, var="obese", id="geoid", per=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.