State boundaries (contemporary and historical)

Share:

Description

Get the current (2014) boundaries for U.S states, or get historical state boundaries for dates between 3 September 1783 and 31 December 2000.

Usage

1
us_states(map_date = NULL, resolution = c("low", "high"), states = NULL)

Arguments

map_date

The date of the boundaries as some object coercible to a date with as.Date(); the easiest option is a character vector following the ISO 8601 data format.

resolution

The resolution of the map.

states

A character vector of state or territory names. Only boundaries inside these states/territories will be returned. If NULL, all boundaries will be returned.

Value

A SpatialPolygonsDataFrame.

See Also

For documentation of and citation to the underlying shapefiles for contemporary data from the U.S. Census Bureau, see census_boundaries. For documentation of and citation to the underlying shapefiles for contemporary data from the U.S. Census Bureau, see hist_us_states.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
contemporary <- us_states()
historical   <- us_states("1820-07-04")
new_england  <- us_states(states = c("Massachusetts", "Vermont", "Maine",
                                     "New Hampshire", "Rhode Island",
                                     "Connecticut"))
if (require(sp)) {
   plot(contemporary)
   plot(historical)
   plot(new_england)
}