Book Image

R Data Visualization Cookbook

Book Image

R Data Visualization Cookbook

Overview of this book

Table of Contents (17 chapters)
R Data Visualization Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating cartograms


Cartograms are distorted shapes of geographical areas. The distortion is based on a set of data encoded in a map. The idea of a cartogram is to show the gravity of the issue or data being studied. Mark Newman at the University of Michigan has created some of the best cartograms. Very interesting implementations of cartograms are the Elemental Cartograms, where the shape of the periodic table is distorted based on the user data.

In the visualization, we have distorted the map of the USA based on the prevalence of obesity in each state. We observe that the boundaries and area are connected but the geographical accuracy is lost as the shape is distorted.

Yau (2013) states the advantage of using cartograms over choropleth maps as "…, the upside of cartograms is that areas fill appropriate amounts of space, but the trade-off is less geographic accuracy. When your data is for larger regions, with wide range of sizes, this trade-off is worth it, but when regions are uniform in...