choroplethr
simplifies the creation of choropleths in R. A choropleth is a thematic map where geographic regions such as states are colored according to some metric, such as which political party the state voted for. choroplethr
is built on top of the ggplot2 graphics library and is supports three levels of geographic resolution and three types of scales. Common problems such as matching county data with map data, choosing and labeling discrete scales and creating a clean background are handled automatically.
choroplethr
provides native support for viewing data from the US Census's American Community Survey (ACS).
choropleth
also supports animating choropleths, which is useful for seeing trends in regions over time, such as population changes.
The choroplethr
package is described more fully in the following wiki pages:
- What is a choropleth? When should I use one?
- Choosing a Level of Detail (lod)
- Choosing a Scale Type
- Mapping Census Data
- Animated Choropleths
- ZIP Level Maps
To install the latest stable release type the following from an R console:
install.packages("choroplethr")
To install the development version use the devtools
package:
# install.packages("devtools")
library(devtools)
install_github("choroplethr", "trulia")
library(choroplethr)