getUSCounty: Retrieves shapefile for US counties

Description Usage Arguments Examples

View source: R/getshapefiles.R

Description

This function returns a dataframe with map data for every county in the US or every county in a particular state.

Usage

1
2
getUSCounty(state = NULL, region = c("GEO_ID", "STATE", "COUNTY", "NAME",
  "LSAD", "CENSUSAREA"))

Arguments

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".

Examples

1
2
map <- getUSCounty("Georgia")
makemap(data=d, map = map, var="obese", id="geoid", per=TRUE)

kevjohnson/mymaps documentation built on May 20, 2019, 9:20 a.m.