Chapter 4 Visualize

Communication is an essential part of data science. A key aspect of the successful communication of numerical or statistical results consists in creating transparent visualizations. Creating effective visualizations is challenging and often effortful, but can also be very enjoyable.

Most people conceptualize data as numeric information and think of R as a language for statistical computing. R is really good at that, but there are many programs for doing statistics. A lot of people use R because of its graphical powers — not just for visualizations of data, but also for mathematical concepts and relations (e.g., functions), different kinds of charts and diagrams (e.g., riskyr), decision trees (e.g., FFTrees), and computational artwork (e.g., the creative experiments at Fronkonstin).

Starting your own journey into data science with creating visualizations may seem unususal. However, it is a great way of understanding how R scripts work (as we can see the effects of our commands) and provides students with an immediate sense of achievement.

Preparation

Recommended background readings for this chapter include:

After reading this chapter, Chapter 2: Visualizing data of the ds4psy textbook (Neth, 2021a) provides an introduction to the ggplot2 package.

Preflections

i2ds: Preflexions

Before you read on, please take some time to reflect upon the following questions:

  • Where do you usually encounter visualizations? Who created them?

  • What are the goals, benefits and dangers of visualizations?

  • What distinguishes good from bad visualizations?

References

Baumer, B. S., Kaplan, D. T., & Horton, N. J. (2021). Modern Data Science with R (2nd ed.). Chapman; Hall/CRC. https://mdsr-book.github.io/mdsr2e/
Healy, K. (2018). Data visualization: A practical introduction. Princeton University Press. https://socviz.co/
Neth, H. (2021a). Data science for psychologists. Social Psychology; Decision Sciences, University of Konstanz. https://bookdown.org/hneth/ds4psy/
Wilke, C. O. (2019). Fundamentals of data visualization: A primer on making informative and compelling figures. O’Reilly Media. https://clauswilke.com/dataviz/