* for quantitative data like this we usually want to use a sequential (map 1+2) or diverging (map 3+4) color palette
* for sequential palette, the colors with the highest visual weight should be mapped to the values of interest: usually the darker color for higher values on a light background (and vice versa).
Maps 1+3 put weight on areas with high pressures,
maps 2+4 on low-pressure areas.
* when switching to diverging palettes, we focus on both extreme
* for diverging palettes the middle value should be light on a light background (map 1) and dark on a dark background (map 3)
* don't use a rainbow or related color palettes as they are highly misleading due to perceptual problems (map 1) computer.org/csdl/magazine/…
* there is an improved (but not perfect) rainbow palette called turbo if you need one (map 2) ai.googleblog.com/2019/08/turbo-…
* don't use qualitative color palettes for quantitative data as, by definition, the colors do not follow a perceptual order. It's easy to extrapolate these palettes and the maps are often very colorful—but not interpretable at all...
• • •
Missing some Tweet in this thread? You can try to
force a refresh
@rstudio The session pages contain not only the slides but
🔵 hands-on #rstats codes
🔵 recap notes
🔵 exercises incl.
🔵 prepared scripts, either as #quarto or #rmarkdown
🔵 step-by-step solutions
📊🧵 Collection of tweets featuring open-access materials that I have shared over the last years:
Talks, seminars, blog posts, hands-on notebooks, codes, and more!
#rstats #ggplot2 #tidyverse #dataviz 🧙♂️
The tutorial now contains 188 plots and is generated with ~3000 lines of code.
Added topics (1/5):
- several alternative ways to solve things
- short explanation of geoms and theme in the intro
- more on theme elements
- in general a bit more text + explanations
- highlighting difference `scale_x|y_continuous()` vs `coord_cartesian(x|ylim)`