Create United States Uniform Cartogram Heatmaps
Overview
The 'cartogram' heatmaps generated by the included methods are an alternative to choropleth maps for the United States and are based on work by the Washington Post graphics department in their report on "The states most threatened by trade" (http://www.washingtonpost.com/wp-srv/special/business/states-most-threatened-by-trade/). "State bins" preserve as much of the geographic placement of the states as possible but have the look and feel of a traditional heatmap. Functions are provided that allow for use of a binned, discrete scale, a continuous scale or manually specified colors depending on what is needed for the underlying data.
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: statebins/R/aaa.R (.Names: 1) '.Names' should be changed to 'names'.
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Bob Rudis <bob@rud.is>’ The BugReports field in DESCRIPTION has https://gitlab.com/hrbrmstr/statebins/issues which should likely be https://gitlab.com/hrbrmstr/statebins/-/issues instead.
- NOTE8 OK, 5 NOTENow
- NOTE11 OK, 2 NOTE2026-07-16
- OK14 OK2026-03-10
Documentation
- Help pages
- 5includes a package overview page
- Examples that run
- 50%1 run in a plain check · 1 never run
- Exported functions with examples
- 67%
- Documented parameters
- 63%
- Return-value docs
- 33%
- Help pages citing references
- 0%
Downloads
Repository
Repository gitlab.com/hrbrmstr/statebins is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.
Dependencies
Installing statebins adds 17 packages (7 with compiled code, 14 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, farver 1.2 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.4.0Latest2020-07-09 · current release · diff ↗ ·
removed 2 exports
statebins_continuous, statebins_manualadded 3 exports
GeomStatebins, geom_statebins, theme_statebins - RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 1.2.2
- RR 3.2.0 released · 2015-04-16
- 1.02014-08-27
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2014-08-27
- Total releases
- 3 / 12 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 0.7 KB / 1 file
- Download size
- 858 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("statebins")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.