US Maps Including Alaska and Hawaii
Overview
Obtain United States map data frames of varying region types (e.g. county, state). The map data frames include Alaska and Hawaii conveniently placed to the bottom left, as they appear in most maps of the US. Convenience functions for plotting choropleths, visualizing spatial data, and working with FIPS codes are also provided.
Introducing usmap 1.0.0! This week we celebrated 10 years since the first commit to this project. It has been quite a ride and usmap has grown greatly over the years. To everyone who has supported the project in any way, either by reporting issues, contributing code, or just using the package in your work, thank you so much.
I'm happy to announce that with this version we have finally added Puerto Rico! This addition has been years in the making and its now available throughout usmap.
New Features
- Add Puerto Rico support to all
usmapfunctions (where relevant), see Issue #20. - All included map years have been retroactively updated to include Puerto Rico, so any valid value of
data_yearwill include Puerto Rico if desired. - Functions now return Puerto Rico in their data sets and it can be included or excluded just like any state (using FIPS, full name, abbreviation, etc.).
- Puerto Rican municipalities will be shown when using
"county"map variants. - By default, Puerto Rico is not shown when using
plot_usmap()unless it is specifically included with theincludeparameter. This default behavior can be changed by setting the environment variableUSMAP_DEFAULT_EXCLUDE_PR = FALSE. Setting this parameter will include Puerto Rico by default when callingplot_usmap()unless specifically excluded with theexcludeparameter. - Special thanks @dcaud who started this work years ago.
Improvements
- Improve documentation and vignettes.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 33 (4 internal)includes a package overview page
- Examples that run
- 100%20 run in a plain check
- Exported functions with examples
- 95%
- Documented parameters
- 100%
- Return-value docs
- 29%
- Help pages citing references
- 24%
- 1. Introduction HTML
- 2. Mapping the US HTML
- 3. Advanced Mapping HTML
Downloads
Repository
- PRs merged (all time)
- 85%
- Median days to close, 50 most recently updated closed issues
- 48
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
15 development-tooling and community-health practices detected across 8 families in the upstream repository
Checks run against github.com/pdil/usmap on 2026-10-18.
Funding links: GitHub Sponsors
The repository owner accepts GitHub Sponsors
Show all practicesHide 4 practices
Dependencies
Installing usmap adds 11 packages (9 with compiled code, 23 MB of source tarballs). Heaviest: sf 9.3 MB, usmapdata 5.4 MB, s2 2.8 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.0.0Latest
- 0.8.02025-05-28 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.7.12024-03-21 · diff ↗
- 0.7.02024-01-20 · diff ↗
- 0.6.42023-12-11 · diff ↗
- 0.6.32023-10-22 · diff ↗
- 0.6.22023-06-13 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.6.12022-11-13 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.6.02022-02-27 · diff ↗
- RR 4.1.0 released · 2021-05-18
- unarchivedReturned to CRAN2021-01-21
Show 14 earlier eventsHide 14 earlier events
- 0.5.22021-01-21 · diff ↗
- archivedRemoved from CRAN2021-01-10check problems were not corrected in time
- 0.5.12020-10-07 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.5.0
- RR 3.6.0 released · 2019-04-26
- 0.4.02018-09-16 · diff ↗ ·
added 14 exports
.east_north_central, .east_south_central, .mid_atlantic, .midwest_region, .mountain, .new_england, .north_central_region, .northeast_region, .pacific, .south_atlantic, .south_region, .west_north_central, .west_region, .west_south_central - 0.3.02018-06-03 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.2.12017-08-15 · diff ↗
- 0.2.0
- RR 3.4.0 released · 2017-04-21
- 0.1.02017-01-29
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2017-01-29
- Total releases
- 17 / 9 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 152 KB / 7 files
- Download size
- 2.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("usmap")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.