Learn R Programming

choroplethrZip

v1.4.0: Master:

R package with shapefile, metadata and visualization functions for US Zip Code Tabulated Areas (ZCTAs).

Training & Development

My free course Learn to Map Census Data in R can teach you how to use this package. I blog about this package's development here.

Installation

Due to this package's size (~60MB) it is hosted on github, not CRAN. To install the latest stable release type the following from an R console:

# install.packages("devtools")
library(devtools)
install_github('arilamstein/choroplethrZip@v1.4.0')

Usage

This package ships with two vignettes which explain how to use the package. For convenience I have also published them online:

  1. Creating ZIP Code Choropleths with choroplethrZip
  2. Creating ZIP Code Choropleths of US Census Data with choroplethrZip
  3. Zip Code Demographics with choroplethrZip v1.3.0

In short: type ?zip_choropleth and ?zip_choropleth_acs after installing the package to get started.

Copy Link

Version

Version

1.5.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

May 22nd, 2017

Functions in choroplethrZip (1.5.0)

get_zip_demographics

Get a handful of demographic variables from the US Census Bureau as a data.frame.
df_zip_demographics

A data.frame containing demographic statistics for each Zip Code Tabulated Area (ZCTA).
zip.regions

Metadata about US Zip Code Tabulated Areas (ZCTAs)
zip_choropleth

Create a choropleth of US Zip Codes
zip_choropleth_acs

Create a US ZIP choropleth from ACS data
zip.map

Map of US Zip Code Tabulated Areas (ZCTAs)
df_pop_zip

A data.frame containing population estimates for US Zip Code Tabulated Areas (ZCTAs) in 2012.
ZipChoropleth

An R6 object for creating ZIP-level choropleths.