ProductPromotion
Logo

R Programming

made by https://0x3d.site

GitHub - walkerke/tigris: Download and use Census TIGER/Line shapefiles in R
Download and use Census TIGER/Line shapefiles in R - walkerke/tigris
Visit Site

GitHub - walkerke/tigris: Download and use Census TIGER/Line shapefiles in R

GitHub - walkerke/tigris: Download and use Census TIGER/Line shapefiles in R

tigris

<img src=tools/readme/tigris_sticker.png width="250">

R build status CRAN Badge CRAN Downloads

tigris is an R package that allows users to directly download and use TIGER/Line shapefiles (https://www.census.gov/geographies/mapping-files/time-series/geo/tiger-line-file.html) from the US Census Bureau.

To install the package from CRAN, issue the following command in R:

install.packages('tigris')

Or, get the development version from GitHub:

devtools::install_github('walkerke/tigris')

tigris functions return simple features objects with a default year of 2022, though later years are available (tigris maintains consistency with the most recent 5-year American Community Survey). To get started, choose a function from the table below and use it with a state and/or county if required. You'll get back an sf object for use in your mapping and spatial analysis projects:

library(tigris)
library(ggplot2)

manhattan_roads <- roads("NY", "New York")

ggplot(manhattan_roads) + 
  geom_sf() + 
  theme_void()

<img src=tools/readme/ny_roads.png>

tigris only returns feature geometries for US Census data which default to the coordinate reference system NAD 1983 (EPSG: 4269). For US Census demographic data (optionally pre-joined to tigris geometries), try the tidycensus package. For help deciding on an appropriate coordinate reference system for your project, take a look at the crsuggest package.

To learn more about how to use tigris, read Chapter 5 of the book Analyzing US Census Data: Methods, Maps, and Models in R.

Python users may also be interested in pygris, a Python port of the tigris package.

Available datasets:

Please note: cartographic boundary files in tigris are not available for 2011 and 2012.

Function Datasets available Years available
nation() cartographic (1:5m; 1:20m) 2013-2023
divisions() cartographic (1:500k; 1:5m; 1:20m) 2013-2023
regions() cartographic (1:500k; 1:5m; 1:20m) 2013-2023
states() TIGER/Line; cartographic (1:500k; 1:5m; 1:20m) 1990, 2000, 2010-2024
counties() TIGER/Line; cartographic (1:500k; 1:5m; 1:20m) 1990, 2000, 2010-2024
tracts() TIGER/Line; cartographic (1:500k) 1990, 2000, 2010-2024
block_groups() TIGER/Line; cartographic (1:500k) 1990, 2000, 2010-2024
blocks() TIGER/Line 2000, 2010-2024
places() TIGER/Line; cartographic (1:500k) 2011-2024
pumas() TIGER/Line; cartographic (1:500k) 2012-2024
school_districts() TIGER/Line; cartographic 2011-2024
zctas() TIGER/Line; cartographic (1:500k) 2000, 2010, 2012-2024
congressional_districts() TIGER/Line; cartographic (1:500k; 1:5m; 1:20m) 2011-2024
state_legislative_districts() TIGER/Line; cartographic (1:500k) 2011-2024
voting_districts() TIGER/Line 2012, 2020
area_water() TIGER/Line 2011-2024
linear_water() TIGER/Line 2011-2024
coastline TIGER/Line() 2013-2024
core_based_statistical_areas() TIGER/Line; cartographic (1:500k; 1:5m; 1:20m) 2011-2021, 2023-2024 (not available for 2022)
combined_statistical_areas() TIGER/Line; cartographic (1:500k; 1:5m; 1:20m) 2011-2024
metro_divisions() TIGER/Line 2011-2024
new_england() TIGER/Line; cartographic (1:500k) 2011-2022 (no longer used by Census)
county_subdivisions() TIGER/Line; cartographic (1:500k) 2010-2024
urban_areas() TIGER/Line; cartographic (1:500k) 2012-2024
primary_roads() TIGER/Line 2011-2024
primary_secondary_roads() TIGER/Line 2011-2024
roads() TIGER/Line 2011-2024
rails() TIGER/Line 2011-2024
native_areas() TIGER/Line; cartographic (1:500k) 2011-2024
alaska_native_regional_corporations() TIGER/Line; cartographic (1:500k) 2011-2024
tribal_block_groups() TIGER/Line 2011-2024
tribal_census_tracts() TIGER/Line 2011-2024
tribal_subdivisions_national() TIGER/Line 2011-2024
landmarks() TIGER/Line 2011-2024
military() TIGER/Line 2011-2024

More Resources
to explore the angular.

mail [email protected] to add your project or resources here ๐Ÿ”ฅ.

Related Articles
to learn about angular.

FAQ's
to learn more about Angular JS.

mail [email protected] to add more queries here ๐Ÿ”.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory