The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

tigris

R-CMD-check 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 2025. 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()

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-2025
divisions() cartographic (1:500k; 1:5m; 1:20m) 2013-2025
regions() cartographic (1:500k; 1:5m; 1:20m) 2013-2025
states() TIGER/Line; cartographic (1:500k; 1:5m; 1:20m) 1990, 2000, 2010-2025
counties() TIGER/Line; cartographic (1:500k; 1:5m; 1:20m) 1990, 2000, 2010-2025
tracts() TIGER/Line; cartographic (1:500k) 1990, 2000, 2010-2025
block_groups() TIGER/Line; cartographic (1:500k) 1990, 2000, 2010-2025
blocks() TIGER/Line 2000, 2010-2025
places() TIGER/Line; cartographic (1:500k) 2000 (TIGER/Line only), 2010-2025
pumas() TIGER/Line; cartographic (1:500k) 2012-2025
school_districts() TIGER/Line; cartographic 2011-2025
zctas() TIGER/Line; cartographic (1:500k) 2000, 2010, 2012-2025
congressional_districts() TIGER/Line; cartographic (1:500k; 1:5m; 1:20m) 2010-2025 (cartographic 2013 and later)
state_legislative_districts() TIGER/Line; cartographic (1:500k) 2000 (TIGER/Line only), 2010-2025
voting_districts() TIGER/Line 2012, 2020
area_water() TIGER/Line 2011-2025
linear_water() TIGER/Line 2011-2025
coastline TIGER/Line() 2013-2025
core_based_statistical_areas() TIGER/Line; cartographic (1:500k; 1:5m; 1:20m) 2011-2021, 2023-2025 (not available for 2022)
combined_statistical_areas() TIGER/Line; cartographic (1:500k; 1:5m; 1:20m) 2011-2025
metro_divisions() TIGER/Line 2011-2025
new_england() TIGER/Line; cartographic (1:500k) 2011-2021 (no longer used by Census)
county_subdivisions() TIGER/Line; cartographic (1:500k) 2010-2025
urban_areas() TIGER/Line; cartographic (1:500k) 2012-2025
primary_roads() TIGER/Line 2010-2025
primary_secondary_roads() TIGER/Line 2010-2025
roads() TIGER/Line 2010-2025
rails() TIGER/Line 2011-2025
native_areas() TIGER/Line; cartographic (1:500k) 2011-2025
alaska_native_regional_corporations() TIGER/Line; cartographic (1:500k) 2011-2025
tribal_block_groups() TIGER/Line 2011-2025
tribal_census_tracts() TIGER/Line 2011-2025
tribal_subdivisions_national() TIGER/Line 2011-2025
landmarks() TIGER/Line 2011-2025
military() TIGER/Line 2011-2025
population_centers() Census reference files 2000, 2010, 2020

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.