cartography: Create and Integrate Maps in your R Workflow


cartography is an R package (R Core Team (2016)) for thematic mapping. It allows various cartographic representations such as proportional symbols, chroropleth, typology, flows or discontinuities. In addition it also proposes some useful features like cartographic palettes, layout (scale, north arrow, title…), labels, legends or access to cartographic API to ease the graphic presentation of maps.

The package relies mostly on sp (E. J. Pebesma and Bivand (2005), Bivand, Pebesma, and Gomez-Rubio (2013)) and rgeos (R. Bivand and Rundel (2016)) packages to handle and transform spatial data.

The map below is a cartographic composition showing most of the representations enabled by the package.

Cartographic Composition

Cartographic Composition


Bivand, Roger S., Edzer Pebesma, and Virgilio Gomez-Rubio. 2013. Applied Spatial Data Analysis with R, Second Edition. Springer, NY.

Bivand, Roger, and Colin Rundel. 2016. Rgeos: Interface to Geometry Engine - Open Source (GEOS).

Pebesma, Edzer J., and Roger S. Bivand. 2005. “Classes and Methods for Spatial Data in R.” R News 5 (2): 9–13.

R Core Team. 2016. R: A Language and Environment for Statistical Computing. Vienna, Austria: R Foundation for Statistical Computing.