Skip to content

statebins

1.4.0Package record

Create United States Uniform Cartogram Heatmaps

2packages depend
9Kdownloads / year
48.7%test coverage
8/13flavors OK

Overview

About

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

CRAN checks
5NOTE8OK
Check messages
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.

CRAN check page ↗

Slowest check: 1.5 min · r-oldrel-windows-x86_64
Status changes
  • NOTE8 OK, 5 NOTENow
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.4.0
READMENoVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
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

9K
CRAN downloads in the past year
Rank #4,587 · ~25/day · ~748/mo
Daily download trend is not available in this view yet.
77030 days
1.8K90 days
9K1 year
Compare downloads with other packages →
Also on234 r2u6 autocran729 conda_forge132 c2d4u

Repository

PracticesBeta

Repository gitlab.com/hrbrmstr/statebins is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.

How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.5.0
Imports (3)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Imports 2
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (5)
Author, Maintainer since 1.0 (2014)
Contributor · added in 1.4.0
theme testing & feedback
Contributor · added in 1.4.0
fix for show.guide
Contributor · added in 1.4.0
Minor fix for NA handling
Contributor · added in 1.4.0
Significant suggestions & testing that made new features possible
Releases (3)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 1.4.0Latest
    record
    2020-07-09 · current release · diff ↗ ·
    removed 2 exports
    statebins_continuous, statebins_manual
    added 3 exports
    GeomStatebins, geom_statebins, theme_statebins
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 1.2.2
    record
    2015-12-21 · diff ↗ ·
    added 1 export
    statebins_manual
  • R
    R 3.2.0 released · 2015-04-16
  • 1.0
    record
    2014-08-27
  • R
    R 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
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("statebins")
Rudis, B., Adams, B., Gil, H., Kiang, M., & Wood, T. (2020). statebins: Create United States Uniform Cartogram Heatmaps (Version 1.4.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for statebins version 1.4.0 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy