Exemplar visualisations - how far can we take it?

We’ve seen how to make ‘quick and dirty’ plots for ourselves. Now we will give you a glimpse of just how far you can take your visualisations. For this section we are looking at both code complexity and fundamental elements of design.

The aim of this section is to give you a set of resources that you can use to find examples and inspiration for your own work, as well as starting to look at elements of design.

Here we will provide guidelines on design and visualisation while highlighting key examples from the scientific community. The good news is that there is an avid visualisation community online - check out the 30 day chart challenge or the datavisualization hashtag on LinkedIn as a starting point.

From the community

These dedicated data scientists create beautiful visualisations and most of their code is readily available on GitHub for you to learn from too.

#TidyTuesday

Logo for the TidyTuesday project

Tidy Tuesday is a data science learning community, with weekly social projects where people are invited to create visualisations of a provided dataset. Check out their GitHub page to learn more and to get involved.

Isaac Arrayo gives us a breakdown of four plots from #tidytuesday, We see four diverse plot types, the rationale for each plot, and how these plots might be applied to a more ‘standard’ dataset (i.e., an in-real-life example).

For the tidyverse of course!

Resources and Showcase

A collection of resources - if you have any recommendations, feel free to Contact us or open an issue on github and we’ll add them here.

from Data to Viz

From Data to Viz is a fantastic resource for thinking about your data and what type of chart might be appropriate. It was developed by Yan Holtz and Conor Healy.

from Data to Viz decision tree

First, it shows a decision tree for each of the different data types (numeric, categoric etc.,). Within the data types you can look at plots for different subcategories (single numeric data, two numeric variables etc.,) and there is a “story” article for each subcategory that covers an example and explanations.

You can also click on a given plot type in the decision tree to open up a panel and view information about the plot type. Each plot also has a dedicated page (example bubble plot page) that gives a full breakdown of the plot, explaining the required variables and some beautiful examples.

If you are interested in more data visualisation stories, we recommend subscribing to the Dataviz Universe weekly newsletter by one of the creators Yan Holtz.

R for Data Science, 2E

The R for Data Science, 2E book (available free, online) is the go to resource for anyone learning the tidyverse, and it has a great section on ggplot2! It was written Hadley Wickham, Mine Çetinkaya-Rundel, and Garrett Grolemund. Hadley is a New Zealander and created ggplot2 during his PhD.

Awesome ggplot2

A curated list of awesome ggplot2 extensions and packages, including plot layers, themes and aesthetics, presentation, composition and scales, interactive, network, spatial, 3D plots, time, icons, patterns and images, data and models, miscellaneous and more!

Awesome ggplot2 on GitHub

Summary

Elements of design, or the ability to create attention-capturing visuals, is not widely taught (in my experience) in the science sector, but there is a range of useful material and dialogue on visualisation available to you. Remember that everyone will have their own personal preference, and it’s important to balance style with clarity. Simplicity is always going to be a powerful factor, and within a single document having a cohesive theme is key.