Communicating data more effectively with visualisation

University of Edinburgh
17 February 2025

Dr Nicola Rennie

About me

Lecturer in Health Data Science within the Centre for Health Informatics, Computing, and Statistics.


Background in statistics, operational research, and data science consultancy.


Collaborate with local NHS trusts on data science and data engineering projects.


Co-author of Royal Statistical Society’s Best Practices for Data Visualisation guidance.




CHICAS logo

Why develop a data visualisation guide?

How did the Royal Statistical Society’s Best Practices for Data Visualisation guide start?

A survey in 2021 asked Royal Statistical Society (RSS) members their views on Significance magazine.

Respondents were asked, “What aspects of content could be improved?”

  • “Better, more consistent charts… I’d like to see a house style like The Economist
  • “The figures are often difficult to read…”
  • “The plots sometimes look amateurish…”

Help wanted

“RSS publications seek data visualisation expert to develop best practice guidance.”

Photo of Andreas

Andreas Krause, Idorsia Pharmaceuticals

Photo of Nicola

Nicola Rennie, Lancaster University

Photo of Brian

Brian Tarran, Royal Statistical Society

What’s the aim of the guide?

The guide would:

  • Help contributors develop data visualisations that are appropriate for RSS publications.
  • Be a source of information to aid people in developing charts that are high quality, readable, effective at conveying information, and fulfill their intended purpose.
  • Summarise and link to authoritative advice on chart styles and formats for different types of data.
  • Show how to override software defaults in common data visualisation software and packages.

Skip forward quite a few months…

Screenshot of data vis guide homepage

The rest of this talk…

In this session we will cover…

  • why you should visualise data;

  • some guidelines for making better charts;

  • examples of good and bad charts!

The role of visualisation

Why visualise data?

Data visualisation has two main purposes:

  • Exploratory data analysis and identifying data issues
  • Communicating insights and results

book shelf cartoon

Communicating insights with data visualisation

Grab attention

Visualisations stand out. If a reader is short on time or uncertain about whether a document is of interest, an attention-grabbing visualisation may entice them to start reading.

Improve access to information

Textual descriptions can be lengthy and hard to read, and are frequently less precise than a visual depiction showing data points and axes.

Summarise content

Visual displays allow for summarising complex textual content, aiding the reader in memorising key points.

Designing better charts

What are you trying to communicate?



Who are you trying to communicate it to?



Visualisations should be intuitive to the group of people you are communicating with.

What makes charts less intuitive?

  • Type of chart doesn’t match the type of data
  • Inconsistent colour schemes
  • Poor choices of axes
  • Overly complex chart design
  • Not enough explanation

Some types of charts are less intuitive than others.

Why do pie charts have a bad reputation?

Why do 3D charts have a bad reputation?

On the plot on the left, how tall is the bar?

Two 3D bar charts

Designing better visualisations

Layouts, aspect ratios, and axes

Layouts, aspect ratios, and axes

Layouts, aspect ratios, and axes

Layouts, aspect ratios, and axes

Should the axes start at 0?

Layouts, aspect ratios, and axes

They don’t always have to start at zero…

Layouts, aspect ratios, and axes

Longer labels are best on the y-axis, horizontally.

Layouts, aspect ratios, and axes

Layouts, aspect ratios, and axes

Badly ordered chart of covid cases

Source: Georgia Department of Public Health

Layouts, aspect ratios, and axes

Default:

Magnitude ordered:

Naturally ordered:

Plotting multiple values

Avoid spaghetti plots!

Effectively plotting multiple values

Alternatives to spaghetti:

  • Show a smaller number of lines (e.g. compare a few countries to average)
  • Use facets (AKA small multiples)
  • Use colour only to highlight lines

Plotting multiple variables

Effectively plotting multiple variables

Some alternatives:

  • Separate plots, each with their own axis, and place the plots side-by-side.
  • Plot different variables on the x- and y- axis.
  • Rescale the variables, rather than the axis.

Lines aren’t always appropriate

  • Suggest an order
  • Suggest continuity

Colours

Why use colours in data visualisation?

  • Colours should serve a purpose, e.g. discerning groups of data.

  • Colours can highlight or emphasise parts of your data.

  • Not always the most effective for, e.g. communicating differences between variables.

Colours

Different types of colour palettes…


… for different types of data.

Examples of sequential, diverging, and qualitative palettes

Colours

Is this a good choice of colour?

Colours

Check for colourblind friendly plots with colorblindr::cvd_grid(g).

What do you think about this chart?

In groups, discuss the following chart. What is good and bad about it?

02:00

Bar chart from the economist

Improved bar chart from the economist

Key points

  • Think about your audience.

  • Not all popular chart types are the best choice.

  • Actively design visualisations with that audience in mind.

  • Every rule should be broken for some visualisations.

Good charts don’t have to be boring!

Stacked diverging bar chart of lego colours

Cara Thompson (cararthompson.com)

small multiples are charts of college basketball

Cedric Scherer (cedricscherer.com)

Good charts don’t have to be boring!

Supreme court justice chart

Tanya Shapiro (tanyaviz.com)

Sloped area chart

Dan Oehm (gradientdescending.com)

Read the guide: rss.org.uk/datavisguide