tigris

Download and use Census TIGER/Line shapefiles in R

https://github.com/walkerke/tigris

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    2 of 17 committers (11.8%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.6%) to scientific vocabulary

Keywords from Contributors

geos
Last synced: 10 months ago · JSON representation

Repository

Download and use Census TIGER/Line shapefiles in R

Basic Info
  • Host: GitHub
  • Owner: walkerke
  • License: other
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 4.25 MB
Statistics
  • Stars: 344
  • Watchers: 22
  • Forks: 46
  • Open Issues: 20
  • Releases: 0
Created about 11 years ago · Last pushed 12 months ago
Metadata Files
Readme Changelog Funding License

README.md

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 2024. 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:

```r library(tigris) library(ggplot2)

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

ggplot(manhattanroads) + geomsf() + 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-2024 | | divisions() | cartographic (1:500k; 1:5m; 1:20m) | 2013-2024 | | regions() | cartographic (1:500k; 1:5m; 1:20m) | 2013-2024 | | 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-2021 (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 |

Owner

  • Name: Kyle Walker
  • Login: walkerke
  • Kind: user
  • Location: Fort Worth, Texas

Geographer, R developer, spatial data scientist

GitHub Events

Total
  • Issues event: 20
  • Watch event: 18
  • Issue comment event: 56
  • Push event: 25
  • Pull request event: 9
  • Fork event: 5
  • Create event: 2
Last Year
  • Issues event: 20
  • Watch event: 18
  • Issue comment event: 56
  • Push event: 25
  • Pull request event: 9
  • Fork event: 5
  • Create event: 2

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 348
  • Total Committers: 17
  • Avg Commits per committer: 20.471
  • Development Distribution Score (DDS): 0.549
Past Year
  • Commits: 19
  • Committers: 2
  • Avg Commits per committer: 9.5
  • Development Distribution Score (DDS): 0.053
Top Committers
Name Email Commits
Kyle Walker k****a@g****m 157
Kyle Walker k****r@t****u 86
Kyle Walker k****1@g****m 80
Bob Rudis b****b@r****t 4
Mark Richards d****4@g****m 4
Maria Paula Caldas m****s@g****m 3
McGhee D****e@k****v 2
Noel Peterson n****n 2
lpiep l****p@u****u 2
Matt Landis m****s@r****m 1
larcat l****m@g****m 1
John Sheffield j****d@g****m 1
Daniel Silva-Inclan u****w@g****m 1
R. Kyle Bocinsky b****y 1
Andy Marek a****k@a****g 1
lpiep l****r@g****m 1
Josiah Parry j****y@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 111
  • Total pull requests: 33
  • Average time to close issues: 2 months
  • Average time to close pull requests: 3 months
  • Total issue authors: 93
  • Total pull request authors: 15
  • Average comments per issue: 2.41
  • Average comments per pull request: 1.88
  • Merged pull requests: 20
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 13
  • Pull requests: 8
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 4 days
  • Issue authors: 12
  • Pull request authors: 3
  • Average comments per issue: 2.85
  • Average comments per pull request: 1.38
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • walkerke (9)
  • monkeywithacupcake (3)
  • mfherman (2)
  • kuriwaki (2)
  • jtrosalez (2)
  • elipousson (2)
  • frumh002 (2)
  • lmkirvan (2)
  • lpiep (2)
  • 18kimn (1)
  • binkleym (1)
  • kongkong2006 (1)
  • BenjaminJackFrancis (1)
  • RealCoChenchao (1)
  • atkissoncj (1)
Pull Request Authors
  • walkerke (10)
  • elipousson (7)
  • dteck (3)
  • mpetuk (2)
  • lpiep (2)
  • n3ssuno (1)
  • defuneste (1)
  • annnvv (1)
  • mpaulacaldas (1)
  • bocinsky (1)
  • landisrm (1)
  • nmpeterson (1)
  • bkmontgom (1)
  • JosiahParry (1)
  • kevin-gries (1)
Top Labels
Issue Labels
enhancement (3) bug (1) question (1)
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • cran 10,281 last-month
  • Total docker downloads: 1,195
  • Total dependent packages: 22
    (may contain duplicates)
  • Total dependent repositories: 58
    (may contain duplicates)
  • Total versions: 35
  • Total maintainers: 1
cran.r-project.org: tigris

Load Census TIGER/Line Shapefiles

  • Versions: 28
  • Dependent Packages: 20
  • Dependent Repositories: 58
  • Downloads: 10,281 Last month
  • Docker Downloads: 1,195
Rankings
Stargazers count: 1.3%
Forks count: 1.8%
Dependent repos count: 3.2%
Dependent packages count: 3.4%
Downloads: 4.4%
Average: 6.5%
Docker downloads count: 24.6%
Maintainers (1)
Last synced: 11 months ago
conda-forge.org: r-tigris
  • Versions: 7
  • Dependent Packages: 2
  • Dependent Repositories: 0
Rankings
Dependent packages count: 19.5%
Stargazers count: 20.8%
Average: 25.0%
Forks count: 25.6%
Dependent repos count: 34.0%
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.3.0 depends
  • dplyr * imports
  • httr * imports
  • magrittr * imports
  • maptools * imports
  • methods * imports
  • rappdirs * imports
  • rgdal * imports
  • sf * imports
  • sp * imports
  • stringr * imports
  • utils * imports
  • uuid * imports
  • ggplot2 * suggests
  • ggthemes * suggests
  • knitr * suggests
  • leaflet * suggests
  • rgeos * suggests
  • testthat * suggests
  • tidycensus * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/upload-artifact main composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite