Tutorials  /  ,

Using Color Scales and Palettes in R

Color can drastically change how a chart reads and what you see in your data, so don’t leave it up to chance with defaults.

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 an Interactive Stacked Area Chart

Stacked area charts let you see categorical data over time. Interaction allows you to focus on specific categories without losing sight of the big picture.

Downloading Your Email Metadata

Email provides a window into who we interact with and what we do. This tutorial describes how to get that data in the format you want.

More on Making Heat Maps in R

You saw how to make basic heat maps a while back, but you might want more flexibility for a specific data set. Once you understand the components of a heat map, the rest is straightforward.

Getting Started with Network Graphs in R

Add the vertices. Connect them with edges. Repeat as necessary.