Alternatives to Simple Color Legends in ggplot2

Author

Dr. Joscelin Rocha-Hidalgo

Published

December 12, 2021

Buy me a coffeeBuy me a coffee


By Meghan Hall

Excerpt from post: Legends, or the way aesthetic values are mapped to data, are an essential part of plots, and this post introduces a few different options for labeling colors effectively.

  1. Link to post here: https://meghan.rbind.io/blog/color-legend/

Line chart showing the percentage of each U.S. state in exceptional drought from 2010 to 2021. In early 2021, Utah (UT), Arizona (AZ), and New Mexico (NM) each have over 40% of their area in exceptional drought—the highest level. Data lines for California (CA) and Texas (TX) are also labeled. Source: U.S. Drought Monitor.

Back to top