choroplethr: Create Color-Coded Choropleth Maps in R

Easily create color-coded (choropleth) maps in R. No knowledge of cartography or shapefiles needed; go directly from your geographically identified data to a highly customizable map with a single line of code! Supported geographies: U.S. states, counties, and census tracts, world countries and sub-country regions (e.g., provinces, prefectures, etc.). One of the suggested packages, rnaturalearthhires, is not available on CRAN owing to its larger filesize (40MB). It can be installed from GitHub using remotes::install_github("https://github.com/ropensci/rnaturalearthhires"). This package contains higher resolution sub-country maps and is only needed for the choropleth_admin1() function.

Getting started

Package details

AuthorAri Lamstein [aut], Zhaochen He [ctb, cre], Brian Johnson [ctb], Trulia, Inc. [cph]
MaintainerZhaochen He <zhaochen.he@cnu.edu>
LicenseBSD_3_clause + file LICENSE
Version5.0.0
URL https://github.com/eastnile/choroplethr
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("choroplethr")

Try the choroplethr package in your browser

Any scripts or data that you put into this service are public.

choroplethr documentation built on June 27, 2025, 1:07 a.m.