Description Usage Arguments Value See Also Examples
View source: R/us_congressional.R
Get the current (2020) boundaries for U.S. Congressional districts.
1 | us_congressional(resolution = c("low", "high"), states = NULL)
|
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 |
An sf
object.
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.
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))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.