Mapping in R

An Rfun overview and quick-reference guide to mapping in R.


These learning and quick-reference resource pages support the face-to-face workshop, Mapping with R, offered via the Center for Data & Visualization Sciences, Duke University Libraries. The exercises and workshop are designed to help you learn georeferencing, make a choropleth with USA census data via the tidycensus package, and briefly introduce the sf package, simple features.


If you see mistakes or want to suggest changes, please create an issue on the source repository.


Text and figures are licensed under Creative Commons Attribution CC BY-NC 4.0. Source code is available at, unless otherwise noted. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".