us_congressional: Congressional district boundaries (contemporary)

Description Usage Arguments Value See Also Examples

View source: R/us_congressional.R

Description

Get the current (2020) boundaries for U.S. Congressional districts.

Usage

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

Arguments

resolution

The resolution of the boundaries.

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

An sf object.

See Also

For documentation of and citation to the underlying shapefiles for contemporary data from the U.S. Census Bureau, see the census_boundaries help file in the USAboundariesData package.

Examples

1
2
3
4
5
6
if (require(USAboundariesData) && require(sf)) {
  us_congressional <- us_congressional()
  va_congressional <- us_congressional(states = "Virginia", resolution = "high")
  plot(st_geometry(us_congressional))
  plot(st_geometry(va_congressional))
}

USAboundaries documentation built on Oct. 12, 2021, 5:07 p.m.