Better Tools Than Bar Charts

Improved visualisations for when you might otherwise reach for bar charts

Callout-case-studyCase Study

Over the course of a small study, you attempted to evaluate the effect of a drug on four different matched cohorts of 11 individuals, specifying dosage per individual and measuring the drug effect.

The interactive examples below ask you to visualise alternative representations of this data.

Note

In this dataset, cohort is a categorical variable, but dosage and effect are continuous variables.

1 Visualising numerical datasets

Callout-challengeChallenge

In the interactive examples below, you can select alternative visualisations of the case study dataset, and decide for yourself which presents the most appropriate story about the data.

Figure 1: Dosage for each cohort (bar chart)
Figure 2: Effect for each cohort (bar chart)
Figure 3: Dosage for each cohort (bar chart with error bars representing standard deviation)
Figure 4: Effect for each cohort (bar chart with error bars representing standard deviation)
Figure 5: Dosage for each cohort (1D scatterplot)
Figure 6: Effect (1D scatterplot)
Figure 7: Dosage for each cohort (boxplot)
Figure 8: Effect for each cohort (boxplot)
Figure 9: Dosage for each cohort (violin plot)
Figure 10: Effect for each cohort (violin plot)
Figure 11: Dosage for each cohort (bar chart, standard deviation error bars, overlaid 1D scatterplot)
Figure 12: Effect for each cohort (bar chart, standard deviation error bars, overlaid 1D scatterplot)
Figure 13: Dosage for each cohort (box plot, overlaid 1D scatterplot)
Figure 14: Effect for each cohort (box plot, overlaid 1D scatterplot)
Figure 15: Dosage for each cohort (violin plot, overlaid 1D scatterplot)
Figure 16: Effect for each cohort (violin plot, overlaid 1D scatterplot)
Callout-questionsQuestions
  1. Did any of the visualisations give a good summary account of the data, and why did you think so?
  2. Did any of the visualisations give a poor summary account of the data, and why did you think so?
  3. If someone presented a bar chart as a summary of measurements in a dataset, would you think that was a reliable visual representation?
  4. What kinds of problems in these datasets were disguised by each visualisation approach?
  1. Does the visualisation describe the data, or only a summary of the data?
  2. Does the visualisation let you easily tell the difference between two datasets with similar summaries, but different data?
  3. Does the visualisation introduce elements that imply the presence of data which is not in the dataset?

2 Visualising correlations

Callout-dataData Analysis

In the interactive window below, you can select alternative visualisations of the case study dataset, and decide for yourself which presents the most appropriate story about the data.

Figure 17: Linear regression of effect against dosage, for each cohort.
Figure 18: Regression plot of effect against dosage, for each cohort, with ribbon indicating 95% confidence interval for the fitted line.
Figure 19: Scatterplot of effect against dosage for each cohort.
Figure 20: Regression plot of effect against dosage for each cohort, with overlaid scatterplot.
Figure 21: Regression plot of effect against dosage for each cohort, with 95% confidence interval ribbon and scatterplot
Callout-questionsQuestions
  1. Do the parameters or correlation coefficients of the fitted linear regressions differ by cohort?
  2. Do the linear regressions give a good account of the relationship between dosage and effect, in each case?
  3. Does the plotted uncertainty in the linear regression capture the variation between the real data, and linear regression?
  4. Are there any signs of systematic problems in the data?
  5. What kind of visualisation is most helpful to understand these datasets?
  1. Does the regression fully describe the data, or is it only a summary of the data?
  2. Does the uncertainty in the regression adequately describe the variation of the data with respect to the fitted line?
  3. Which visualisations best allow you to see differences between the datasets?