Member-only story
Building a graph, step by step
Data visualisation depends on analytical choices.
Graphs can tell stories about numbers, with clarity and concision. Data visualisation is a great skill for data analysts. Academic papers, business reports, and public debates often include graphs.
The ‘ggplot2’ package in R is a common tool for making these graphs. This article will look at the steps used to create a single graph. Since response rates to the Labour Force Survey reached a low in 2023, let’s work out how to recreate this:
With lower response rates, there is higher risk that people who did not answer differ from those who did. Lower responses put more strain on weights to make the sample look like the population. The statistics may be less reliable than when the survey had high response rates.
Graphs have a grammar. Each layer adds new parts to the graph, helping to convey information.
Preparation
Preparation and planning are useful skills when making graphs. The data should be in a ‘tidy’ format. That means every row contains a different observation.