• Stars
    star
    311
  • Rank 129,216 (Top 3 %)
  • Language
    R
  • License
    Other
  • Created almost 9 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Download and use Census TIGER/Line shapefiles in R

tigris

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 2021. 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-2022
divisions() cartographic (1:500k; 1:5m; 1:20m) 2013-2022
regions() cartographic (1:500k; 1:5m; 1:20m) 2013-2022
states() TIGER/Line; cartographic (1:500k; 1:5m; 1:20m) 1990, 2000, 2010-2022
counties() TIGER/Line; cartographic (1:500k; 1:5m; 1:20m) 1990, 2000, 2010-2022
tracts() TIGER/Line; cartographic (1:500k) 1990, 2000, 2010-2022
block_groups() TIGER/Line; cartographic (1:500k) 1990, 2000, 2010-2022
blocks() TIGER/Line 2000, 2010-2022
places() TIGER/Line; cartographic (1:500k) 2011-2022
pumas() TIGER/Line; cartographic (1:500k) 2012-2022
school_districts() TIGER/Line; cartographic 2011-2022
zctas() TIGER/Line; cartographic (1:500k) 2000, 2010, 2012-2022
congressional_districts() TIGER/Line; cartographic (1:500k; 1:5m; 1:20m) 2011-2022
state_legislative_districts() TIGER/Line; cartographic (1:500k) 2011-2022
voting_districts() TIGER/Line 2012, 2020
area_water() TIGER/Line 2011-2022
linear_water() TIGER/Line 2011-2022
coastline TIGER/Line() 2013-2022
core_based_statistical_areas() TIGER/Line; cartographic (1:500k; 1:5m; 1:20m) 2011-2022
combined_statistical_areas() TIGER/Line; cartographic (1:500k; 1:5m; 1:20m) 2011-2022
metro_divisions() TIGER/Line 2011-2022
new_england() TIGER/Line; cartographic (1:500k) 2011-2022
county_subdivisions() TIGER/Line; cartographic (1:500k) 2010-2022
urban_areas() TIGER/Line; cartographic (1:500k) 2012-2022
primary_roads() TIGER/Line 2011-2022
primary_secondary_roads() TIGER/Line 2011-2022
roads() TIGER/Line 2011-2022
rails() TIGER/Line 2011-2022
native_areas() TIGER/Line; cartographic (1:500k) 2011-2022
alaska_native_regional_corporations() TIGER/Line; cartographic (1:500k) 2011-2022
tribal_block_groups() TIGER/Line 2011-2022
tribal_census_tracts() TIGER/Line 2011-2022
tribal_subdivisions_national() TIGER/Line 2011-2022
landmarks() TIGER/Line 2011-2022
military() TIGER/Line 2011-2022

More Repositories

1

tidycensus

Load US Census boundary and attribute data as 'tidyverse' and 'sf'-ready data frames in R
R
613
star
2

neighborhood_diversity

Shiny application on neighborhood diversity
R
124
star
3

crsuggest

Get appropriate CRS suggestions for your spatial data in R
R
120
star
4

mapboxapi

R interface to Mapbox web services
HTML
101
star
5

pygris

Use US Census shapefiles in Python (port of the R tigris package)
Python
88
star
6

census-with-r-book

Source for Analyzing US Census Data: Methods, Maps, and Models in R by Kyle Walker, published with CRC Press
HTML
71
star
7

bsselectR

In-progress htmlwidget for bootstrap-select
JavaScript
61
star
8

idbr

An R interface to the US Census Bureau International Data Base API
R
57
star
9

education_map

Educational Attainment in America
JavaScript
49
star
10

umich-workshop

Slides and code for tidycensus workshops given at the University of Michigan in March 2021
HTML
46
star
11

umich-workshop-2023

Materials for ACS workshops given at SSDAN / University of Michigan in 2023
HTML
45
star
12

map-challenge-2023

Code and maps for 2023's 30 Day Map Challenge
HTML
39
star
13

geog30323

Materials for GEOG 30323: Data Analysis & Visualization at TCU
Jupyter Notebook
36
star
14

umich-workshop-2022

Slides and code for Census data workshops given at the University of Michigan in 2022
JavaScript
30
star
15

teaching-with-datavis

Code for 'Teaching with Interactive Data Visualization' site
HTML
23
star
16

sports-geography

Materials for Sports Geography & Society, taught May Session 2018 at TCU
HTML
20
star
17

mb-immigrants

HTML
18
star
18

walkerke.github.io

Walker Data website
HTML
15
star
19

kwgeo

Tools for visualizing and manipulating geographic data in R
R
12
star
20

texas_pyramids

Shiny application to explore Texas county demographics
R
9
star
21

cloud-spatial-data-science

Tutorials on how to set up a spatial data science environment on Amazon EC2
TeX
9
star
22

acs14lite

Lightweight R interface to the Census API for the 2010-2014 American Community Survey
R
8
star
23

MUSAmasterclass

HTML
7
star
24

wdi-shiny

Shiny app to explore World Bank datasets
HTML
7
star
25

isds-webinar

Slides and materials for ISDS R Users Group webinar
HTML
6
star
26

dfw-election-dot-map

Dot map of the 2016 presidential election in Dallas-Fort Worth
R
6
star
27

rmdwebsite

R Markdown source code for my personal website
HTML
6
star
28

whats-new-in-tidycensus

Slides for tidycensus webinar on September 28, 2023
HTML
6
star
29

uw-workshop

Repository for workshop given at UW CSDE in February 2022
R
4
star
30

urbanslides

Slides for GEOG 10023, "An Urban World", taught Spring 2020 at TCU
HTML
4
star
31

us-boundaries

R
4
star
32

sha2017

Slides and data for Geographic Information Systems workshop at the 2017 Society for Historical Archaeology conference
HTML
3
star
33

gender-age-explorer

Shiny application to explore population structure and gender ratios
HTML
3
star
34

census-r

Website for "Analyzing US Census Data: Methods, Maps, and Models with R" forthcoming with CRC Press
HTML
3
star
35

aag2017

Slides and code for presentation at 2017 AAG meetings
R
3
star
36

tigris-webinar

Materials for tigris webinar on April 4, 2017
HTML
3
star
37

tigris-article

In-progress article, "Geographic visualization and analysis in R with tigris"
TeX
3
star
38

tigris-zip-income

Shiny application in support of R Journal submission
R
3
star
39

urbangis

Slides for "GEOG 40323: Urban & Business GIS", taught Spring 2018 at TCU
HTML
2
star
40

qgis-tutorial

Tutorial for geocoding and calculating distances in QGIS
2
star
41

tiles

This repo stores tiles for web mapping.
HTML
2
star
42

oldred

Code and slides for my Sept 19 talk, "Visualizing the changing landscape of US immigration"
HTML
2
star
43

umich-workshop-2024

Slides and code for workshops given with the University of Michigan's SSDAN in 2024
HTML
1
star
44

txgis2017

Slides and code for Texas GIS Forum presentation
HTML
1
star
45

dimple-pyramid

Shiny app to create interactive population pyramids - WIP
R
1
star
46

tlc2014

Slides for Teaching and Learning Conversation on March 26, 2014
JavaScript
1
star
47

geog30313

Slides for GEOG 30313: Introduction to GIS at TCU
HTML
1
star
48

home-value-dots

Dot-density map of owner-occupied home values from the 2018-2022 ACS
HTML
1
star