Learn R Programming

tigris (version 1.6)

voting_districts: Download a voting districts shapefile into R

Description

Obtain feature geometry for 2020 voting districts, which align with voting districts for the 2020 PL-94171 redistricting data from the US Census Bureau.

Usage

voting_districts(state = NULL, county = NULL, cb = FALSE, year = 2020, ...)

Arguments

state

The state for which you'd like to retrieve data. Can be a state name, state abbreviation, or FIPS code. When NULL and combined with cb = TRUE, a national dataset of voting districts will be returned.

county

The county for which you are requesting data. Can be a county name or FIPS code. If NULL (the default), data for the entire state will be returned.

cb

If cb is set to TRUE, download a generalized (1:500k) cartographic boundary file. Defaults to FALSE (the most detailed TIGER/Line file).

year

The data year; defaults to 2020. An older voting districts dataset from the 2012 TIGER/Line shapefiles is available with year = 2012.

...

arguments to be passed to the underlying `load_tiger` function, which is not exported. Options include class, which can be set to "sf" (the default) or "sp" to request sf or sp class objects, and refresh, which specifies whether or not to re-download shapefiles (defaults to FALSE).

Details

The US Census Bureau describes voting districts as follows: Voting district (VTD) is a generic term adopted by the Bureau of the Census to include the wide variety of small polling areas, such as election districts, precincts, or wards, that State and local governments create for the purpose of administering elections. Some States also use groupings of these entities to define their State and local legislative districts, as well as the districts they define for election of members to the U.S. House of Representatives. In a nationwide cooperative program for the 1980 census, the Census Bureau gave States the opportunity to request use of these election precinct boundaries as the boundaries of #' census enumeration districts (EDs) or, in some areas, census blocks.

Support for voting districts in tigris 1.5 and higher is aligned with the 2020 PL redistricting data. The argument cb = FALSE retrieves voting districts from the TIGER/Line PL shapefiles. A generalized version from the cartographic boundary dataset is available with the argument cb = TRUE.

See Also

https://www2.census.gov/geo/pdfs/reference/GARM/Ch14GARM.pdf

Other legislative district functions: congressional_districts(), state_legislative_districts()

Examples

Run this code
# NOT RUN {
#'
library(tigris)

ia <- voting_districts("Iowa")

plot(ia$geometry)

# }

Run the code above in your browser using DataLab