Skip to content

usmap

1.0.0Package record

US Maps Including Alaska and Hawaii

1packages dependsuggested by 4
47.6Kdownloads / year
100.0%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.0.0

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 usmap functions (where relevant), see Issue #20.
  • All included map years have been retroactively updated to include Puerto Rico, so any valid value of data_year will 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 the include parameter. This default behavior can be changed by setting the environment variable USMAP_DEFAULT_EXCLUDE_PR = FALSE. Setting this parameter will include Puerto Rico by default when calling plot_usmap() unless specifically excluded with the exclude parameter.
  • Special thanks @dcaud who started this work years ago.

Improvements

  • Improve documentation and vignettes.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.8 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.0
READMEYes · 669 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 1.0.0Citation fileNoWebsiteYes
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%

Downloads

47.6K
CRAN downloads in the past year
Rank #2,192 · ~130/day · ~4K/mo
Daily download trend is not available in this view yet.
2.9K30 days
8K90 days
47.6K1 year
Compare downloads with other packages →
Also on458 r2u3 autocran66 c2d4u

Repository

83Stars
20Forks
0Open issues
0Open PRs
17Releases
679Commits
5Commit identities
rmappinggeodatadatacountiesstatesusafips
License file reads as GPL-3.0 · 679 commits · Last activity 2026-08-06 · 0% stars, 30d · Default branch at 1.0.0.9000, ahead of CRAN 1.0.0 (checked 2026-10-18) · Discussions: 1 post
Responsiveness
How these are sampled
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

2025-10-01 · 792026-07-26 · 83
PracticesBeta

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.

Continuous integration (1)
GitHub Actions
Governance and community (6)
Code of conductContributing guideIssue templatesPR templateFunding

Funding links: GitHub Sponsors

The repository owner accepts GitHub Sponsors

Docs source (2)
README.Rmd

GitHub Pages site last deployed 2024-03-07

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 4 practices
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Lint, format, editor (2)
lintrRStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)

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.

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

Datasets

People & History

People (1)
Author, Copyright holder, Maintainer since 0.1.0 (2017)
Releases (17)

Pick two releases to compare their code metrics.

Show 14 earlier eventsHide 14 earlier events
  • 0.5.2
    record
    2021-01-21 · diff ↗
  • archivedRemoved from CRAN
    2021-01-10
    check problems were not corrected in time
  • 0.5.1
    record
    2020-10-07 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.5.0
    record
    2019-09-13 · diff ↗ ·
    added 2 exports
    usmap_crs, usmap_transform
  • R
    R 3.6.0 released · 2019-04-26
  • 0.4.0
    record
    2018-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.0
    record
    2018-06-03 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.2.1
    record
    2017-08-15 · diff ↗
  • 0.2.0
    record
    2017-04-29 · diff ↗ ·
    added 1 export
    map_with_data
  • R
    R 3.4.0 released · 2017-04-21
  • 0.1.0
    record
    2017-01-29
  • R
    R 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")
Di Lorenzo, P. (2025). usmap: US Maps Including Alaska and Hawaii (Version 1.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for usmap version 1.0.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