getUSState: Retrieves shapefile for US states

Description Usage Arguments Examples

View source: R/getshapefiles.R

Description

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

Usage

1
getUSState(region = c("STATE", "GEO_ID", "NAME", "LSAD", "CENSUSAREA"))

Arguments

region

region to use with the fortify() function, defaults to "STATE". Choices are "GEO_ID", "STATE", "NAME", "LSAD", "CENSUSAREA".

Examples

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

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