How to Make an Interactive Choropleth Map

When presented with a static graphic, it can be useful to see specific values after you see overall patterns. This tutorial shows you how to add simple interactions to a choropleth map so you can get specifics for regions.

To access this full tutorial and download the source code you must be a member. (If you are already a member, log in here.)


Gain instant access to step-by-step visualization courses and tutorials for insight and presentation — all while supporting an independent site. Source code and data is included so that you can more easily apply what you learn in your own work.

Members also recieve a weekly newsletter, The Process, which looks more closely at the tools, the rules, and the guidelines and how they work in practice.

See samples of everything you gain access to:

About the Author

Nathan Yau is a statistician who works primarily with visualization. He earned his PhD in statistics from UCLA, is the author of two best-selling books ā€” Data Points and Visualize This ā€” and runs FlowingData. Introvert. Likes food. Likes beer.

More Tutorials See All →

How to Make a Semicircle Plot in R

It’s the half cousin of the bubble plot with less overlap and more straight edges.

An Easy Way to Make a Treemap

If your data is a hierarchy, a treemap is a good way to show all the values at once and keep the structure in the visual. This is a quick way to make a treemap in R.

How to Make Variable Width Bar Charts in R

The code to create these bar chart variations is almost the same as if you were to make a standard bar chart. But make sure you get the math right.

Choropleth Maps and Shapefiles in R

Fill those empty polygons with color, based on shapefile or external data.