Chapter 13 General

13.1 Introduction

This is an enormous topic.

But start here:

  • Alberto Cairo, The Functional Art (Cairo 2013) and The Truthful Art (Cairo 2016) are framed in the context of Cairo’s professional expertise in “data journalism”.

    – Cairo’s blog has a number of very good posts, including:

    Keep those legends (2019-07-17)

  • William S. Cleveland’s books, Visualizing Data (Cleveland 1993) and The Elements of Graphing Data (Cleveland 1994), are classics in the field of statistical graphics.

  • Kennedy Elliot, Everything we know about how humans interpret graphics, video of talk given at OpenVis conference, 2016-04-25 & 26.

  • Jill H. Larkin and Herbert A. Simon, “Why a diagram is (sometimes) worth ten thousand words”, Cognitive Science, 1987 (Larkin and Simon 1987)

  • Elijah Meeks, “What Charts Do” (2018-05-21) is a succinct summary that’s worth reading.

  • Cole Nussbaumer Knaflic, Storytelling with Data (Knaflic 2015). A great introduction to the fundamentals of good visualization. The companion blog has an on-going series of further dives into the topic.

  • Naomi Robbins, Creating More Effective Graphs. (Robbins 2013)

  • Alan Smith, “Data visualisation: it is not all about technology”, Financial Times, 2017-06-28

  • John W. Tukey, Exploratory Data Analysis (Tukey 1977) is a classic–it might seem dated with its heavy reliance on analogue methods (for example, the suggestions about graph paper (p.127)), but the concepts are timeless.

13.2 General resources

RJ Andrews, 2020-01-28, “Illustration Invades Everything”: Reflections by Minard on his graphical impact.

13.2.1 Animation in Data Visualization

Jon Schwabish, 2019-08-06, Observations on Animation in Data Visualization

13.2.2 Data Visualization Society (Medium)

Medium’s Data Visualization Society “Data Visualization Society aims to collect and establish best practices, fostering a community that supports members as they grow and develop data visualization skills.”


13.3 R Resources

13.3.1 general

13.3.2 Packages

13.4 {ggplot2} – the pre-eminent way to create charts and graphs in R

13.4.1 extensions

There are many extension packages that allow you to make other visualizations in {ggplot2}. Some are catalogued at exts.ggplot2.tidyverse.org/.

13.4.1.1 {ggfittext}

“ggplot2 geoms to fit text into boxes”

13.4.1.2 {patchwork} – The Composer of Plots

“The goal of patchwork is to make it ridiculously simple to combine separate ggplots into the same graphic.”

13.4.1.3 {see} – Model Visualization Toolbox for ’easystatsand 'ggplot2

13.4.2 themes

{ggplot2} has a number of themes in the core package, and here are some to extend the range:

13.4.3 tips and tricks


13.5 Plotly

Plotly for R allows you to “Create interactive, D3 and WebGL charts in R” (their words, not mine). A great resource for upping the content of online visualizations.


13.6 Colour

Colour is a vital part of good data visualization.

13.6.1 General resources

Lisa Charlotte Rost, 2018-07-31, Your Friendly Guide to Colors in Data Visualisation – An overview of color tools

Lisa Charlotte Rost, 2020-09-04, How to pick more beautiful colors for your data visualizations: Common color mistakes and how to avoid them

13.6.1.1 General resources: R

The following links support the use of colour in R.

13.6.2 colour (or color) blindness

13.6.2.1 R packages to address colour blindness

{ggokabeito}: ‘Okabe-Ito’ Scales for ‘ggplot2’ and ‘ggraph’

  • “ggokabeito provides ggplot2 and ggraph scales to easily use the discrete, colorblind-friendly ‘Okabe-Ito’ palette in your data visualizations”

  • {ggokabeito} reference page

  • CRAN page

functions in the {see} package:

{colorblindr}: An R package to simulate colorblindness on R figures.

13.6.3 {colorspace}

“A Toolbox for Manipulating and Assessing Colors and Palettes”

13.6.4 {prismatic}

{prismatic reference site}

13.6.6 ColorBrewer

The ColorBrewer palettes were designed by Dr. Cythia Brewer – a variety of palettes designed for data visualization (including maps)

ColorBrewer 2.0 – tool for selecting colour schemes (centred on maps, but they work just as well for other forms of data visualization)

Cynthia A. Brewer (2003). A Transition in Improving Maps: The ColorBrewer Example. Cartography and Geographic Information Science (Brewer 2003)

Cynthia A. Brewer, Geoffrey W. Hatchard, and Mark A. Harrower (2003) ColorBrewer in Print: A Catalog of Color Schemes for Maps, Cartography and Geographic Information Science (Cynthia A. Brewer 2003).

13.6.6.1 the R package {RColorBrewer}

13.6.8 palettes in R

{paletteer}

  • “a comprehensive collection of color palettes in R using a common interface. Think of it as the “caret of palettes”.”

{MetBrewer}

  • “Color palette package in R inspired by works at the Metropolitan Museum of Art in New York” by BlakeRMills

Other palette resources:

-30-

References

Anscombe, F. J. 1973. “Graphs in Statistical Analysis.” The American Statistician 27 (1): 17–21. https://doi.org/10.1080/00031305.1973.10478966.
Brewer, Cynthia A. 2003. “A Transition in Improving Maps: The ColorBrewer Example.” Cartography and Geographic Information Science 30 (2): 159–62. https://doi.org/10.1559/152304003100011126.
Cairo, Alberto. 2013. The Functional Art: An Introduction to Information Graphics and Visualization. New Riders.
———. 2016. The Truthful Art: Data, Charts, and Maps for Communication. New Riders.
Chang, Winston. 2018. R Graphics Cookbook. Second. O’Reilly. https://r-graphics.org/.
Cleveland, William S. 1993. Visualizing Data. Hobart Press.
———. 1994. The Elements of Graphing Data. Hobart Press.
Cleveland, William S., and Robert McGill. 1984. “Graphical Perception: Theory, Experimentation, and Application to the Development of Graphical Methods.” Journal of the American Statistical Association 79 (387): 531–54. https://doi.org/10.1080/01621459.1984.10478080.
Cynthia A. Brewer, Mark A. Harrower, Geoffrey W. Hatchard. 2003. “ColorBrewer in Print: A Catalog of Color Schemes for Maps, Cartography and Geographic Information Science.” Cartography and Geographic Information Science 30 (1): 5–32. https://doi.org/10.1559/152304003100010929.
Friendly, Michael, and David Meyer. 2016. Discrete Data Analysis with r: Visualization and Modeling Techniques for Categorical and Count Data. CRC Press.
Healy, Kieran. 2019. Data Visualization: A Practical Introduction. Princeton. http://socviz.co/.
Knaflic, Cole Nussbaumer. 2015. Storytelling with Data: A Data Visualization Guide for Business Professionals. Wiley. https://www.storytellingwithdata.com/.
Larkin, Jill H., and Herbert A. Simon. 1987. “Why a Diagram Is (Sometimes) Worth Ten Thousand Words.” Cognitive Science 11 (1): 65–100. https://doi.org/10.1111/j.1551-6708.1987.tb00863.x.
Nicolas P. Rougier, Philip E. Bourne, Michael Droettboom. 2014. “Ten Simple Rules for Better Figures.” PLOS Computational Biology 10 (9). https://doi.org/10.1371/journal.pcbi.1003833.
Robbins, Naomi B. 2013. Creating More Effective Graphs. Chart House.
Tukey, John W. 1977. Exploratory Data Analysis. Addison-Wesley.
Wainer, Howard. 1984. “How to Display Data Badly.” The American Statistician 38 (2): 137–47. https://doi.org/10.1080/00031305.1984.10483186.