tigris

Travis-CI Build Status

Download and use Census TIGER shapefiles in R

Current version: 0.1 (updated 8 October 2015)

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

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

devtools::install_github('walkerke/tigris')

In Version 0.1:

In Version 0.0.8:

Version 0.0.5 release highlights:

Basic usage:

library(tigris)
library(sp)

# Basic plot of US urbanized areas

ua <- urban_areas(cb = TRUE)

plot(ua)
Basic plot

Basic plot

# Interactive Leaflet map (requires the leaflet R package)

library(leaflet)

ua %>% leaflet() %>% addTiles() %>% addPolygons(popup = ~NAME10)
Interactive map

Interactive map

For more information on how to use this package, please view the RPubs at http://rpubs.com/walkerke/tigris.