Plots That Tell the Truth: Visualization Best Practices

A figure is an argument. The same data can be drawn to reveal the truth or to hide it, and most misleading charts are made by honest people who never learned the rules. This lesson teaches you to spot and avoid the classic deceptions, to show your data instead of summarizing it away, and to make the genomics plots (volcano, MA, PCA, heatmaps) the right way. It ends with a critique-and-fix exercise you can put in your portfolio.

🟡 Cross-cutting ⏱️ ~1 hr 🌐 Runs in your browser 📊 Visualization

Before you start

  • Helpful to have met effect sizes and p-values (Stats you can't avoid) and the multiple-testing lesson, because good plots visualize exactly those quantities.
  • No coding required to follow, but a runnable Python cell drives the key demonstration home.
  • Any term new? The Glossary has it.

Learning objectives

By the end of this lesson you will be able to: spot how a figure can mislead through a truncated axis, a hidden distribution, deceptive color, or the wrong chart type, and build genomics plots that present the data honestly.

A figure is an argument, so it can lie

When you put a chart in a paper or a slide, you are making a claim and asking the viewer to believe it at a glance. That power cuts both ways. Small, "innocent" choices, where the axis starts, whether you show the spread, which colors you pick, can exaggerate a tiny effect into a dramatic one or bury a real signal. The goal of this lesson is a single discipline: let the reader see what the data actually say, and make the honest reading the easy one.

Deception 1: the truncated y-axis

The most common chart crime. A bar chart whose y-axis starts at, say, 98 instead of 0 turns a 2% difference into a bar that looks five times taller than its neighbor. For bar charts, the y-axis must start at zero, because the bar's length is the visual encoding of the value and a truncated baseline lies about that length. (Line charts of a trend can sometimes justify a non-zero baseline, but you must label it clearly.)

⚠️ Spot it instantly

Whenever you see a bar chart with a dramatic difference, check the y-axis origin first. If it does not start at zero, the drama may be entirely manufactured by the axis. The same trick in reverse, an over-tall axis, can hide a real difference you would rather downplay.

Deception 2: the bar chart that hides the data

A bar showing the mean of a group (often with an error bar) throws away almost everything: the sample size, the spread, outliers, and whether the distribution is even unimodal. Two groups can have identical bars and completely different underlying data. The fix is to show the data points: a dot plot, box plot, or violin plot reveals the distribution the bar conceals. With small sample sizes (common in biology), plotting every point is not optional, it is the honest minimum.

See why summaries lie: Anscombe's quartet

In 1973 the statistician Francis Anscombe built four datasets with nearly identical means, variances, and correlations, yet wildly different shapes (a clean line, a curve, a line dragged by one outlier, and a vertical cluster with a single far point). The summary statistics cannot tell them apart; only a plot can. The cell below computes the stats for two of them so you can see the numbers match. Press Run (first run loads Python in your browser).

This is the entire case for showing your data. Identical numbers, different reality. A bar chart of these would be indistinguishable; a scatter plot tells the whole story.

Deception 3: color that misleads

Color is data, so it has to be honest too. Three rules:

  • Avoid the rainbow ("jet") colormap. It is not perceptually uniform: equal steps in value look like unequal steps in color, inventing false boundaries and hiding real ones. Use a perceptually uniform map such as viridis for continuous data, the default in modern tools for exactly this reason.
  • Design for color-blind readers. Roughly 1 in 12 men cannot distinguish red from green, the single most common chart color pair. Use color-blind-safe palettes (Okabe-Ito, viridis) and reinforce color with shape or labels so the figure still works in grayscale.
  • Use diverging palettes for diverging data. A heatmap of log fold changes (negative to positive around zero) should use a two-hue diverging scale centered at zero, not a single-hue ramp that hides the sign.

Decode the jargonPerceptually uniform colormap

A color scale where equal differences in the data correspond to equal perceived differences in color. Viridis and its relatives are designed this way; the old rainbow/jet map is not, which is why it distorts heatmaps and is now discouraged in journals.

Deception 4: chartjunk and the wrong chart

Edward Tufte's principle is to maximize the "data-ink ratio": every drop of ink should convey data. 3D bars, heavy gridlines, drop shadows, and decorative backgrounds add nothing and distort comparisons (3D especially makes lengths and angles unreadable). And some chart types are simply weak: pie charts make it hard to compare similar slices (use a bar chart), and dual y-axes let you imply a correlation between two series by choosing the scales, a favorite trick of misleading figures.

The genomics plots, done honestly

PlotShowsDo it right
Volcano plotEffect size (log2FC, x) vs significance (−log10 adjusted p, y)Use the adjusted p-value; mark both thresholds; don't truncate axes to exaggerate
MA plotLog fold change vs mean expressionReveals whether fold changes depend on expression level (a normalization check)
PCA plotSamples in reduced dimensionsLabel the % variance on each axis; color by the real biological group, and check for batch effects
HeatmapExpression across genes × samplesState whether values are scaled (z-scored) per row; use a diverging, perceptually uniform palette
p-value histogramDistribution of all raw p-valuesYour first diagnostic: flat + spike at 0 is healthy (see the multiple-testing lesson)

Notice these plots are honest by design: a volcano plot forces you to show effect size and significance together, which is exactly the lesson from earlier in this track. Good plot choices bake good statistics into the picture.

A checklist for every figure you make

  1. Do bar axes start at zero? If not, fix it or switch chart type.
  2. Can the reader see the data, not just a mean? Show points for small n.
  3. Is the color scale perceptually uniform and color-blind safe? No rainbow, no red-green-only.
  4. Are axes labeled with units, and is any transform (log, z-score) stated?
  5. Is there a clear caption with n, the test used, and what the error bars represent?
  6. Does the visual emphasis match the real effect size, or is the chart over-dramatizing?

🛠️ Your deliverable: critique-and-fix a misleading figure

This is the Track 5 portfolio piece. Find a misleading chart, in a news article, a company slide, a preprint, or make one yourself, and write a short before/after.

1. Diagnose. Name every problem: truncated axis, hidden distribution, bad colormap, dual axes, chartjunk, wrong chart type.

2. Fix. Redraw it honestly (Python with matplotlib/seaborn, or R with ggplot2). Start bar axes at zero, show the data points, switch to viridis, add a proper caption with n and the test.

3. Explain. Write 3 to 5 sentences on what the original implied versus what the data actually support. Put the before, the after, and the explanation in your portfolio repo, it is a small piece that demonstrates exactly the judgment employers look for. See Git & GitHub for scientists for hosting it.

Check your understanding

A slide shows two bars for a biomarker: control at 100 and treated at 103, but the y-axis runs from 98 to 105, making the treated bar look roughly four times taller. What is the right critique?
Correct. A bar encodes its value by length, so a non-zero baseline lies about the magnitude. A 100-vs-103 difference is about 3%, not the fourfold the picture implies. Start the axis at zero, and ideally show the underlying points and n so the reader can judge the spread.
A collaborator argues a bar-of-means plot is sufficient because "the means and error bars summarize the groups." Using the Anscombe idea, what is the strongest counter?
Exactly. Anscombe's quartet demonstrates that identical summary statistics can correspond to radically different data. A bar of means discards distribution shape, outliers, and sample size. For the small samples typical in biology, plot every point.
A reviewer asks you to replace the rainbow (jet) colormap on your expression heatmap. Beyond aesthetics, what is the substantive reason?
Right. Jet/rainbow distorts perception: bright bands appear where the data are smooth and gradients flatten where the data change, inventing or hiding structure. Perceptually uniform maps (viridis and relatives) keep equal data differences looking equal and are more accessible to color-blind readers.
When drawing a heatmap of log2 fold changes that range from negative to positive around zero, which color scale is the honest choice?
Correct. Log fold changes diverge around zero, so a two-hue diverging scale centered at zero shows direction and size faithfully. A single-hue ramp hides the sign, and rainbow maps distort magnitudes because they are not perceptually uniform.
A figure uses dual y-axes to overlay two unrelated time series and "show" they move together. Why is this a misleading-figure red flag?
Right. With independent scales on each axis you can slide two series into apparent lockstep, implying a correlation the data may not support. It is a classic trick of deceptive figures, which is why dual y-axes are discouraged for comparing series.

Sources & further reading

  1. Anscombe FJ. Graphs in Statistical Analysis. The American Statistician, 1973. (The quartet.)
  2. Tufte ER. The Visual Display of Quantitative Information. Graphics Press, 2001. (Data-ink ratio, chartjunk.)
  3. Weissgerber TL, et al. Beyond bar and line graphs: time for a new data presentation paradigm. PLOS Biology, 2015. doi:10.1371/journal.pbio.1002128
  4. Crameri F, Shephard GE, Heron PJ. The misuse of colour in science communication. Nature Communications, 2020. (Why to drop rainbow maps.)
  5. Jambor H. A checklist for designing and improving the visualization of scientific data. Nature Cell Biology 27, 879–883, 2025. (A current, evidence-based figure checklist for biologists.) doi:10.1038/s41556-025-01684-z
  6. Okabe M, Ito K. Color Universal Design (color-blind-safe palette), 2008. jfly color guide

Last reviewed: June 2026.

You finished Track 5

Next up: Track 6, Reproducibility & Career →