Description Usage Arguments Examples
View source: R/getshapefiles.R
This function returns a dataframe with map data for every county in the US or every county in a particular state.
1 2 | getUSCounty(state = NULL, region = c("GEO_ID", "STATE", "COUNTY", "NAME",
"LSAD", "CENSUSAREA"))
|
state |
string with the full name of the state, default is NULL which gives all states. |
region |
region to use with the fortify() function, defaults to "GEO_ID". Choices are "GEO_ID", "STATE", "COUNTY", "NAME", "LSAD", "CENSUSAREA". |
1 2 | map <- getUSCounty("Georgia")
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.