Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (18 sloc) 2.31 KB
title: "Colors"
author: "Jason Bryer"
date: 2019-09-18
draft: false
categories: ["R"]
tags: ["colors", "plots"]
<p>Upon grading the labs I noticed there is interest in adding color to the plots. I understand and appreciate the desire to make your figures more aesthetically pleasing. I have used colors to make the figures fit the overall style of whatever publication they are going to be used in. However, my general advice is to only use color when it adds value. For example, coloring bars or points based upon a quantitative variable is often very helpful. I generally ask myself this when adding color: &quot;Does the addition of color enhance the interpretation of my data or is it distracting?</p>
<p>If you are to use color, choosing a color palette that uses color blind safe colors is important. Here is a article I found that provides a good introduction and principles: <a href="" class="uri"></a></p>
<p>Additionally, there are palettes designed for different purposes (qualitative for quantitative variables). I have found [this] website a really useful resource for picking pallets.
I also use <a href="">Color Brewer</a> very useful for picking colors. Many of the pallets are built into <code>ggplot2</code> with the <code>XXX_color_brewer</code> function.</p>
<p>Some important references for data visualization more broadly (i.e. not limited to use of colors):</p>
<li>Edward Tufte’s <a href=""><em>Visual Display of Quantitative Information</em></a></li>
<li>William Cleveland’s <a href=""><em>Visualizing Data</em></a> and <a href=""><em>The Elements of Graphing Data</em></a></li>
<li>Leland Wilkinson’s <a href=";ie=UTF8&amp;qid=1550692580&amp;sr=1-1&amp;keywords=grammar+of+graphics"><em>The Grammar of Graphics</em></a> and Hadley Wickham’s <a href=""><em>ggplot2: Elegant Graphics for Data Analysis</em></a></li>
You can’t perform that action at this time.