Data visualization

Make meaning visible.

Lesson 1:

Rigorous visualization for clarity and interpretation

Summary

This lesson introduces the dual role of data visualization in science as a tool for communication and discovery. It explores how well-designed visualizations clarify complex findings, while poor design choices (like misleading scales, unnecessary complexity, or inaccessible formats) can distort meaning and obscure the scientific message. Learners will see how visualization choices directly shape interpretation, and how rigorous practices promote clarity, transparency, and accessibility in research communication.

Goal:

Develop a critical understanding of how to design and evaluate visualizations that communicate data accurately, transparently, and accessibly.

1.1 The role of data visualization in scientific communication

Data visualization is the bridge between complex data and human understanding. It translates numbers into forms that we can process rapidly, transforming tables of measurements into shapes, colors, and patterns that reveal relationships immediately. In biomedical research, figures and panels are not shortcuts, they display your scientific story and imply meaning.

"Data visualization...reduces cognitive load, improves knowledge retention, and enhances learning."

When you think about a published paper or a conference talk, what do you remember most clearly? Visualizations overwhelmingly create the first and most lasting impression on most readers. They distill the essence of experiments, highlight key effects, and communicate results across disciplinary boundaries.

As a producer of data visualizations, with this power comes responsibility. Because visualizations are persuasive, they can easily mislead, even unintentionally, through design choices that amplify or obscure aspects of the data.

Applying poor visualization practices leads to ambiguity and misinterpretation, undermining both the rigor of your work and the trust of your audience.

DEEP DIVEData visualization and human perception
“Overview of Data Visualization” (Li, 2020) defines the concept of data visualization, provides an overview of several visualization types, and discusses the relationship between data visualization and human perception. 

Before discussing perception, let’s review some definitions outlined by Li (2020). Data visualization is broadly understood as a pictorial representation of data, but, more specifically:

Data visualization provides users with intuitive means to interactively explore and analyze data, enabling them to effectively identify interesting patterns, infer correlations and causalities, and supports sense-making activities. (Bikakis, 2018 qtd. in Li, 2020; p. 19)

Li (2020) further distinguishes data visualization by noting that this process of interpretation is in service of “the transformation of data into information” (p. 19).

Both “data” and “information” necessarily differ by field, but in the broadest terms, “Data usually refers to raw, unprocessed information that is not recognized as having any meaning” (Li, 2020; p. 10) while information is the interpretative processing of that data that makes it useful and “meaningful” to others.

The pictorial or graphic communication of data is also impacted by interpretation on the part of the reader, which brings us to the interplay of data visualization and human perception.

Li (2020) relies on the definition of human perception as “the process of recognizing (being aware of), organizing (gathering and storing), and interpreting (binding to knowledge) sensory information” (Ward, Grinstein, and Keim, 2010 qtd. in Li, 2020; p. 42) to anchor a discussion of effective visualizations.

Ultimately, because perception is a complex process of how we interpret sensory input, when we view quantitative data in the form of a visual representation, we are making both explicit and implicit judgments about the information (that has already been interpreted in the process of being visualized).

While the several layers of interpretation of data have implications for potential misinterpretation or bias, for Li (2020), the heavy processing that data visualization requires for the viewer is a call to apply aesthetic considerations and approaches to visual design that help improve the visual experience and reduce cognitive load.

Li (2020) offers two considerations for the importance of emphasizing aesthetic value to help readers engage with data visualizations:

The first comes from the field of human-computer interaction (HCI) where early research by Kurosu and Kashimura (1995) showed that aesthetically-pleasing interfaces that offer “clean” or “harmonious” design influences a user’s perceived ease of use and reduces friction to encourage potentially deeper interaction (Tuch et al., 2012).

The second consideration argues that effective aesthetics for engaging with data visualization cannot be applied superficially as a decorative layer only. Rather:
 
Aesthetic criteria for new methods to be effective guides…each link of the chain from idea, mathematical model, algorithm, implementation, to visual result is clean, simple, elegant, symmetric. (Van Wijk, 2006 qtd. in Li, 2020; p. 45)

For the purposes of this unit on data visualization, aesthetics is not a consideration for “art’s sake” but as a useful design component to help readers most successfully apprehend what we are trying to communicate as clearly and accurately as possible with our visualizations.

At its most basic, a data visualization should answer three questions for the reader:

  • What does this data show?
  • How does it support the claim being made?
  • Is this a valid inference?

Visualizations that meet these goals are clear, transparent, and reproducible. They help audiences understand your findings accurately without requiring deep familiarity with the dataset or methods.

Consider a simple example: two plots showing the same experiment on neural firing rates in control versus drug-treated groups (note: we’ll return to this pair of figures in the activity for greater comparison).

Data visualization is often the first, and sometimes only, way an audience interacts with your data.

In one version, the Y-axis begins at 41.5 Hz, making a small 2 Hz difference appear dramatic.

In the other, the Y-axis begins at zero, revealing that the difference is not biologically meaningful.

The underlying data are identical, yet the message is entirely different. 

This example illustrates that communication clarity in visualization depends as much on design integrity as on data accuracy. While there are cases where minor differences can still be biologically meaningful depending on the study, a plot with incomplete context, even if numerically correct, can lead viewers to over-interpret effects or perceive false significance.

Evaluate your own figures to ensure that:

  • There is a single takeaway or insight from the figure that displays your results.
  • Someone unfamiliar with your dataset can interpret it correctly just by viewing the figure.
  • The figure supports claims without exaggerating or misrepresenting your data.
  • The chosen visual format is the right one to make your point as clearly as possible.

Clarity, honesty, and transparency should be the guiding principles. Rigorous visualization communicates the story of your data accurately and avoids leading viewers toward false conclusions.

DEEP DIVEStarting the y-axis at zero
Is it ever appropriate to start the y-axis at a point other than 0?

This question comes down to why you would make this choice. Ideally, no researcher elects to start the y-axis at a value other than 0 in order to intentionally misrepresent the data. There are, however, inadvertent misrepresentations that can occur when trying to emphasize a point and make something clear.

The risk:
In “Choice of y-axis can mislead readers” (Erdogan et al., 2020), the impact of the unit of measure and scaling of the y-axis on our perception of the results is cited as a problem even for researchers who are accustomed to assessing the results daily. The authors of this paper use the term “perception bias” to specifically describe the capacity for the presentation of data to mislead readers’ impressions about study outcomes.  

One example they use to illustrate this potential risk are two visualizations, one starting the y-axis at 0 (plot B) and the other offering a “zoomed-in” look (plot A) at data presented in a German newspaper about the decline in newly registered cars powered by diesel engines.

Plot A:

Plot B:

Figures adapted from Figure 2 of Erdogan et al., 2020, Naunyn Schmiedebergs Arch Pharmacol, CC BY 4.0 - restyled.

Plot A suggests a sharp declining trend by using a y-axis that starts at 40%. Plot B does show a declining trend, but by starting the plot at a neutral y-axis scale, there is no perception that diesel engine cars are being severely abandoned by German consumers (and potentially that the environmental considerations that influence these consumer choices are less impactful than arguments made using Plot A would suggest). 

To this end, a gold standard of plots is to ensure the y-axis begins at 0. This helps prevent distortions that suggest more significance than is actually revealed by the data. 

This is especially true for bar graphs, which are universally considered unreliable unless the y-axis begins at 0. Since the risk of inadvertently misreading information in a bar graph is so great, starting the y-axis at any value other than 0 is a serious misrepresentation of data.

Potential utility:
Resolving the nuance of the question over where to start the y-axis, then, comes down to whether data visualization can still be considered a rigorous representation of the data analysis and data structure that is consistent with reality.

Rigorous data visualizations are by definition representations of the data that are: 1) accurate to the data structure and data analysis, 2) communicated clearly and unambiguously, and 3) developed using accessible design practices.

Sometimes, to make sure that a specific result is made as clear as possible, it is okay to scale the y-axis. Doing so, however, must be done sparingly and with the appropriate context about the data presented in labels, legends, and annotations. 

By extension, the most thorough way to do this is to offer a plot with the neutral y-axis at 0 coupled with a second panel of the scaled y-axis or included as an inlay.

Ultimately, the most important thing to keep in mind is that whenever you truncate the y-axis, you are making an editorial decision. The UK Office for National Statistics (ONS) offers an overview of some data visualizations with truncated y-axes, which were followed by audience push-back. 

In the ONS Digital post, “Does the axis have to start at zero?”, they review these cases and offer approaches to help decide whether scaling the y-axis is appropriate for certain line graphs only  in specific circumstances: 

Line charts focus on change, not comparisons of size like bar charts and because of this the data is represented in a different way. Data in a line chart is encoded by position (x, y coordinates), whereas in a bar chart data is represented by length. This subtle difference changes the way a reader uses the chart, meaning that in a line chart it’s ok to start the axis at a value other than zero, despite many claims that they are always misleading. (ONS Digital, 2016; para. 1)

They recommend evaluating your decision to scale the y-axis using these guidelines:
  • Make sure there is enough context to help justify the zoom-level you’ve chosen to depict this data.
  • If the trend is still clear and communicates the real outcomes with 0 included, do not truncate the y-axis.
  • If large-scale data would potentially cause a significant trend to be minimized or distorted in perception because of starting that y-axis at 0, then consider scaling the y-axis.
  • Because scaling the y-axis is always an editorial decision, make sure to add annotations explaining that your choice is relevant and appropriate or other visual markers (like a break symbol) to cue the reader.

Our responsibility as readers: 
Where the y-axis starts in a plot has ramifications for all of us as readers as well. If you notice that a figure includes a plot that scales the y-axis, look for reasons why that is and if there is a justifiable reason provided by the context surrounding the visualization. Make sure to read through the methods and results carefully to see if this visualization is appropriate. It is necessary for you as a reader to be aware of your own potential for perception bias and to help counter that by examining the information that is being presented to you.

With great power comes great responsibility. Visualization choices about axes, colors, scales, and omissions shape how your audience perceives and remembers your results.

1.2 Data visualization as a tool for discovery

Prior to publication, plots and visual summaries help researchers explore datasets, detect errors, and uncover hidden relationships. In biomedical science, where genomics, imaging, and electrophysiology generate massive, multidimensional data streams, visualization is indispensable for making sense of complexity.

Unfortunately, humans are poor at spotting trends in raw numbers. Patterns that are invisible in tables become obvious when plotted. For instance, a long list of neuronal firing rates across trials tells little about behavior, but a raster plot can immediately reveal rhythmic bursts or stimulus-linked changes.

Visualization has the potential to turn data into insight.

The difference between exploratory and confirmatory visualizations

Exploratory visualization and confirmatory visualization are fundamentally different modes of data visualization with different goals and standards. Exploratory visualization supports hypothesis generation and pattern discovery, while confirmatory visualization is used to communicate results in research that tests specific hypotheses.

Understanding this distinction is critical because the same visualization techniques may be appropriate in some contexts but not others. Often, researchers use exploratory methods but present findings as if they were confirmatory (see HARKing). This can inflate false positives and cause major errors in reproducibility.

When using data visualization for discovery, let's consider the function of each. 

Exploratory visualizations are used when you first encounter your data and help you develop a hypothesis. Exploratory visualizations help answer important questions, such as:

  • Are there patterns and relationships between various factors in my data?
  • Do I detect outliers and data quality issues?
  • What is the distribution and how do my data variables potentially impact each other?
  • Have I made appropriate statistical assumptions in my data analysis plan?

Imagine you have conducted a learning and memory behavioral study where rats learn to navigate a maze.

You have behavioral data, including number of trials to learning, errors made, time spent exploring and successful navigation occurred.

You also have counts of activated neurons from 15 different brain regions.

You begin exploring your data by creating:

  • Bar charts showing average neuron counts in each region.
  • Scatterplots of neuron activation compared to behavioral performance.
  • Histograms of distribution of activation across animals.
  • Heatmaps showing regions most active in successful vs unsuccessful learners.

Only while looking over your visualization, do you notice that animals with higher activation in the hippocampus learned the maze in fewer trials. This is an exploratory discovery because you didn’t predict this specific brain region and behavior connection before analyzing your data. You found the relationship among all of the brain regions using data visualization as a tool.

Exploratory visualizations should not be used to draw confirmatory statistical conclusions, since no discrete hypothesis is being tested. Statistical tests are too often applied to exploratory data as if they were confirmatory, which can mislead interpretation. The presence of a visualization does not itself justify formal hypothesis testing or that a statistical test needs to be applied.

Confirmatory visualizations are used to test specific, pre-determined hypotheses. This means you specified what you would visualize before seeing the data and defined the analysis parameters in advance. This type of visualization demonstrates whether a predicted effect occurred (as in response to “We hypothesized that…” or “To test whether…”).

Building on the exploratory visualization using the example above, you have now detected a potential relationship between hippocampal activation and learning that you want to test further in a new study.

Your established hypothesis states that rats with higher hippocampal neuron activation will require fewer trials to reach successful learning performance in the maze. You then define your analysis plan, including a scatterplot with regression lines, to visualize your data.

After running your experiment, you create the pre-specified visualizations and find that your hypothesis was supported in this confirmatory experiment with a new cohort’s data. This is important because the key difference between exploratory and confirmatory research is the independence that confirmatory research has from the data used to generate the hypothesis.

Know the role of your data visualization, even in discovery mode. Exploratory visualizations will lead you to new conclusions and hypotheses; confirmatory visualizations will help you verify answers!

Liability in visualization-based data discovery
In discovery mode, however, visualization’s strengths can become liabilities. The human brain is wired to detect patterns, even where none exist (See our
unit on Confirmation Bias for more). This poses a major risk when combined with visualizations that display patterns (even some that might not be true to the actual data).

Consider an example from cognitive research: a scatterplot of age versus working memory performance across 200 participants shows no significant correlation (r = -0.12, p = 0.09). But after smoothing and binning, the same dataset appears to reveal a sharp decline with age. The smoothing algorithm has imposed a pattern that isn’t real. 

Aggressive smoothing creates a false age decline pattern by imposing a slope:

Raw data reveals no measuring age-related performance relationship:

Smoothing raw data erases peaks, dips, and outliers by removing noise and/or variability in an effort to highlight broad trends. Aggressively smoothing problematically conceals variability that is often incredibly relevant to what the data actually shows. Including raw data points in visualizations preserves and displays every individual measurement to give a more accurate understanding of your results.

This problem is not unique to behavioral data. In genomics, for example, heatmaps with rainbow color scales can produce vivid visual differences where quantitative differences are minor.

Small expression changes may appear large because our eyes perceive color gradients nonlinearly. When replaced with a perceptually uniform diverging scale (e.g., grey–blue–orange), the same data reveal balanced and biologically meaningful patterns.

Rainbow color scale obscures expression patterns:

Diverging color scale reveals biological patterns:

Using a rainbow map makes it incredibly difficult for the eye to track a consistently increasing pattern (the exact sort of information a heatmap is intended to show). Instead, the multiple colors display a pattern inconsistent with the actual data. This heavily distorts data by creating false boundaries where color shifts sharply, and is a problem for accessibility. Using a grey-blue-orange heatmap, displays data in alignment with actual results.

Visualization, therefore, both shows data and actively shapes perception of it. Seeing a pattern should not be considered proof, but integrated with statistical testing and biological relevance, can lead to real discoveries. Critical visualization literacy means asking whether a perceived pattern is real or an artifact of presentation.

Visualization aids discovery by revealing relationships in data, but these relationships must always be tested, not merely seen. Seeing a pattern is the beginning of inquiry not the end.

The value of visualization for discovery depends on both plot choice AND viewer literacy. A heatmap, a scatterplot, and a UMAP projection may all summarize complex data, but each encodes information differently. For instance:

  • Heatmaps reveal gradients and clusters in large matrices.
  • Scatterplots expose relationships between variables.
  • Dimensionality reduction plots (e.g., PCA or UMAP) show structure across thousands of features.

Choosing the wrong type of plot can (and often does) lead to incorrect conclusions.

A donut chart used for dose-response data, for example, hides temporal progression:

While a survival curve would make that obvious:


Since a donut chart is designed to show static parts of a whole in proportion to each other at a single point in time, using it to plot time-to-event data forces you to obscure and even discard relevant time variables. This hides when events occurred and artificially inflates rates of success or failure by creating an illusion that outcomes are absolute. You would need to instead plot a survival curve here to account for such time-bound data with varying lengths of subject observation.

It is our responsibility as data visualization producers to account for viewer literacy.

There is no way to have a complete understanding of our audience’s visual literacy, so we must account for more complicated figures that provide increased opportunity for misunderstanding.

When data are complex, there’s a temptation to present all information in a single figure. But discovery often benefits from breaking data apart and showing subsets, individual points, or confidence intervals.

Visual simplicity fosters real understanding.

Activity: Recognizing common visualization pitfalls

Let’s review some plots to identify visualization challenges.

Common pitfalls in data visualizations lead to ambiguity and misinterpretation. Find as many as you can!

Post-Activity Questions
  • How might you develop a sensibility for spotting these types of issues in your own work before publication? What pitfalls do you plan to look out for
  • Think about a figure you've recently created or seen in a paper from your field. What change(s) would you make to improve it?

Identifying common pitfalls in data visualization shows how plot choice might cause misinterpretation.

1.3 Common pitfalls and principles for rigor

Rigor in data visualization means designing figures that faithfully represent data and allow others to interpret them accurately. This section focuses on three major sources of error: misrepresentation, overload, and inaccessibility. Each can undermine the credibility of research if not carefully managed. Management starts at the inception of creating visualizations and requires intentional choices that link all the way back to experimental design.

Misrepresentation:
Misrepresentation can be intentional (concealment) or accidental. It occurs when design choices (like chart type, scale, or selective inclusion) distort the data story. Misrepresentation can be mitigated through early, careful planning of data reporting during stages of experimental design. In neuroscience, truncating axes, excluding baseline periods, or plotting only “responsive” data points can all create the illusion of stronger effects.

In a scenario of EEG amplitude measurement across different brain regions during rest vs. task conditions, a graph shows only the most active recording electrodes, omitting those that show no effect. This selection bias gives the impression that the treatment was universally effective, when in fact the full dataset would show large variability.

Professional presentation with selection bias:

Visual comparison reveals where patterns are present and absent:

Checklist for avoiding misrepresentation:

  • Is your chart appropriate for the data type and statistical test?
  • Can a viewer quickly determine what was being measured and compared?
  • Are axes complete and clearly labeled?
  • Are excluded or combined data points reported transparently?
  • Is the language in titles and legends objective rather than persuasive?
  • If a colleague unfamiliar with your experiment viewed the plot, would they interpret it the same way you do?

Rigor requires honesty in visual storytelling. An accurate visualization shows both what is interesting and what is true.

Overload and complexity:
Even accurate data can be obscured by clutter.
Overloaded figures with too many variables, excessive color schemes, or confusing legends prevent comprehension.

For example, a researcher might attempt to show multiple experimental conditions, time points, and subgroups in a single chart. The result is an unreadable tangle of lines and colors, where trends are lost. Simplifying or separating figures can dramatically improve clarity.

Checklist for managing complexity:

  • Who is your target audience, and what level of familiarity do they have?
  • What is the single message this figure should convey?
  • Can any element be removed without losing meaning?
  • Are there too many categories or overlapping visual cues?
  • Would a simpler or alternative visualization communicate the same idea more effectively?

Simplification is not an omission when done for comprehension. Omission of any data, for any reason, should be acknowledged in paired text.

Rigor is not about showing everything. Rather, it’s about showing the truth clearly.

Accessibility and transparency:
A rigorous figure must be accessible to diverse audiences.
Accessibility has two dimensions:

  1. Conceptual accessibility: Can non-experts understand it?
  2. Visual accessibility: Can individuals with differing abilities (e.g., color vision deficiencies, low vision) interpret it?

Accessibility is driven by plot and design choices. Conceptual accessibility considerations include using jargon-free labels, providing context through annotations and labels, choosing appropriate chart types, including figure legends to explain symbols and scales, and even hierarchy of important information within a figure.

Visual accessibility includes using color-blind–friendly palettes, distinct shapes, and sufficient contrast ensures that meaning is conveyed through multiple cues, not color alone. For digital publications, providing alt-text or tabular data summaries helps screen reader users access the same information.

Checklist for accessibility:

  • Are colors perceptually distinct and high-contrast?
  • Are shapes or markers distinguishable without color?
  • Could the figure be understood in grayscale?
  • Does the figure include an alt-text description or accessible data table?
  • Are figure titles and axis labels free of jargon?

Rigor and inclusivity are inseparable. A figure that some readers cannot interpret correctly is, by definition, not rigorous.

We will expand on misrepresentations, complexity, and accessibility and how to avoid these issues in subsequent lessons of this unit!

1.4 Our responsibilities when producing data visualizations

As the producer of a visualization, you are the first audience for your data and the final arbiter of how it is shared. The rigor of your work depends not only on the accuracy of your data but also on how transparently you communicate findings. Every choice from chart type to color palette affects interpretation.

When you create a figure, ask yourself:

  • Does this visualization accurately reflect the evidence?
  • Have I unintentionally exaggerated or minimized effects?
  • Can another researcher reproduce this figure from my data and reach the same conclusion?

In other words, rigor begins the moment you decide to put data into image form. Visualization is not an afterthought, it is part of the scientific method.

You are both storyteller and gatekeeper. Each decision you make when designing a figure shapes how others will understand and build upon your data.

Takeaways
  • Visualization is essential for both scientific communication and discovery.
  • Poor visualization can mislead, obscuring the real meaning of data or creating false impressions.
  • Rigorous visualization emphasizes clarity, transparency, and accessibility.
  • Design choices matter: scales, colors, and selection all influence interpretation.
  • Clarity and honesty should guide every figure. Simplify without distorting; highlight without exaggerating.
  • Accessibility is rigor: ensure that all audiences, regardless of background or ability, can interpret your data.
  • Visualization literacy (understanding how and why visualizations communicate) is as crucial to good science as statistics or experimental design.
Reflection Questions
  • What patterns have you “discovered” in your data through visualization?
  • How can you verify that those patterns are genuine and not products of scale or smoothing?
  • Do your visualization choices allow others to trace your reasoning and reproduce your findings?
  • Recall a recent figure you made for a presentation or paper. How might your visualization choices have influenced how others interpreted the data?
  • If you revisited that figure today, what changes could you make to improve its clarity, transparency, or accessibility?

Lesson 2:

Data structures and visualizations

Summary

This lesson explores how the structure of data (its distribution, pairing, and variability) determines how it should be visualized. Choosing a plot incongruent with expectations of data structure can obscure real findings or create the illusion of effects that do not exist. By contrast, when visualization aligns with data structure, the figure accurately communicates uncertainty, spread, and within-subject relationships. Through examples, learners will examine how plot choice interacts with statistical assumptions and how to select figures that reveal, rather than distort, the truth within data.

Goal:

Develop the ability to recognize how data structure influences visualization choice, and to select plots that faithfully represent variability, distribution, and paired relationships in scientific data.

2.1 Why structure matters

Every dataset has a structure defined by how observations are distributed and related. Some datasets are normally distributed, clustering symmetrically around a mean. Others have skewed distribution or contain outliers that stretch the tails. Some study designs are paired, meaning measurements are taken from the same subjects or from matched units, so analyses often focus on differences within each pair. Others are unpaired, comparing independent groups. Pairing is most useful when measurements within a pair are correlated, and less useful when measurement error dominates.

Each of these features carries implications for both statistical analysis and visual representation. A t-test, for instance, assumes normal distribution and independence. A bar plot showing mean ± standard error makes the same assumption visually: it depicts a single central value with symmetrical uncertainty.

But when the data violate these assumptions, say, because of skew or outliers, the picture it paints can be misleading. In fact, this is a common reason results are overstated or misinterpreted.

Data visualization, then, encodes statistical logic. The wrong plot can imply false precision or hide variability; the right one helps viewers grasp the underlying data structure at a glance.

A visualization is an assumption about your data’s structure. When that assumption is wrong, the figure misleads even if the numbers are correct.

Activity: How plot choice reveals data structure

Let’s explore two scenarios to discover what visualizations imply about data structures.

Select a plot that reflects the data!

Post-Activity Questions
  • How were your inferences impacted by the data visualization choices? What implication does this have for the adage that “the data speak for themselves”?
  • Have you ever been surprised by the data after you first reviewed figures in a study? How were your expectations defied?
  • How have you thought about data structure in regards to data visualization in the past?
  • Are there additional ways of visualizing the data based on the given structure that could be useful? How so?

Data structure should help you identify the most appropriate choice, that works with plot choice expectations, and lead people to see relationships correctly.

Let’s review what we saw in the activity in more detail.

Example 1: Outliers and bar graphs:
We have a study testing whether a mutation affects walking speed. The data are collected, analyzed, and presented as a simple bar graph showing the average speed for wild-type vs. mutant groups with standard error bars.

QuestionAssess what you see!
What does this plot assume about the data?

Average speed for wild-type vs. mutant groups with standard error bars:

The bars do not overlap, and the result looks promising, perhaps even statistically significant.

Yet when the same dataset is shown as a boxplot displaying the median and full range, a different story emerges. The plots of the wildtype and mutant groups have long whiskers, suggesting a large range of data points.

Plot with long whiskers showing range:

What looked like a significant genetic effect was actually driven by just a few outlier animals.

The assumption of normal distribution, shared by both the bar graph and the t-test, was false. A non-parametric test such as the Mann-Whitney U confirms the suspicion: p = 0.18. 

The effect that once looked significant is gone.

This example underscores a central lesson: a figure can be statistically incorrect if its design implies assumptions that the data do not meet.

Boxplots reveal distributional information that bar graphs hide:

  • The whiskers mark the minimum and maximum within a defined range.
  • The box captures the middle 50 percent of data.
  • The line inside the box marks the median, a measure robust to outliers.

Because the boxplot encodes spread, asymmetry, and outliers, it allows viewers to judge whether the data are likely normal and whether reported differences are meaningful.

Bar graphs show the mean; boxplots show the story.

When assessing distribution, ask:

  • Is the dataset symmetrical or skewed?
  • Are there extreme values that could distort a mean?
  • Would a boxplot or violin plot better represent the variability?
  • What assumptions does this statistical test make, and does the figure convey those same assumptions accurately?

2.2 Visualizing relationships: paired vs unpaired

Another structural feature that determines plot choice is pairing. Paired data arise when measurements are taken on the same subject under different conditions like before and after treatment, left vs. right hemisphere, pre- and post-training session. In these cases, each data point has a natural partner, and the question of interest is whether each individual changed.

Aggregating paired data into two independent groups erases this relationship. The overall spread might look large, suggesting high variability, even when every subject changes in the same direction.

Let’s review what we saw in the second scenario of the activity in more detail.

Example 2: Revealing the Paired Effect
After the walking-speed experiment, you test a drug that might increase jump height. You measure each animal before and after treatment. Initially, you visualize the results as two independent boxplots: pre-drug vs. post-drug. The boxes overlap substantially, suggesting that there is no difference between the groups.

A Mann-Whitney U test agrees: p = 0.40. A Mann-Whitney U test is a nonparametric test that assesses differences between two independent groups. Nonparametric tests are used when one cannot assume the data follows a specific or normal distribution.

But when you plot each subject’s paired values and connect them with lines, the pattern changes.

The orange lines now show which points slope upward, indicating that only those animals jumped higher after treatment. The within-subject observations, hidden before, now reveal specifics about performance after treatment.

The appropriate analysis is a paired-sample test such as Wilcoxon (non-parametric) that shows p < 0.01, confirming that the visual impression is correct. The data didn’t change; the perspective did.

In paired designs, showing individual trajectories often reveals real effects that group summaries conceal.

When choosing the correct perspective, ask:

  • Are the groups composed of independent samples or repeated measures?
  • Could individual lines or matched symbols clarify within-subject trends?
  • Does the plot highlight what the analysis actually tests?

However, be cautious about what paired plots reveal. Pairing the same individual across measurements doesn't guarantee that individual variability is the dominant source of variation; variability across time points or measurement days may tell a more important story about your data.

2.3 Choosing the right plot for the right data

Good visualization aligns three elements: the data structure, the statistical test, and the visual representation. When these are congruent, the figure communicates clearly and reliably.

Below are some overall guidelines for expected use cases for common plot types. These are not meant to limit your choices, but to help orient you to the expectations around how figures are used.

When to use bar graphs:

  • Data are approximately normal and have similar variances.
  • The sample size is moderate to large.
  • The main message concerns the average value rather than distribution.
  • Error bars depict standard error or confidence intervals transparently.

Bar graphs are compact and intuitive, but they hide information about variability. Never use a bar graph without error bars, and avoid them for small or skewed datasets.

When to use boxplots or violin plots:

  • Data may be skewed, contain outliers, or come from small samples.
  • You want to emphasize spread and median rather than mean.
  • The audience benefits from seeing distribution shape.

Boxplots promote transparency by revealing the entire range of data, not just its center. Violin plots extend this further by visualizing the full density.

When to use paired-line or dot plots:

  • Each data point has a matched partner.
  • The question centers on change within individuals.
  • You want to visualize both direction and consistency of effects.

Connecting paired data with lines transforms abstract statistics into visible trajectories. Even without p-values, patterns become self-evident.

Deep diveReading vs. interpreting data visualizations
Data visualizations are created to convey a specific message about your data. They reinforce the claims made by your statistical results. As such, how individuals read and interpret visualizations should be taken into consideration.

How people read and interpret your visualizations are two different, yet related processes. 

Reading visualizations
When you are designing your visualizations, you have the most control over how others will read them. You're supplying the blueprint for what story your data is telling. So, it’s your job to ensure that the visualizations are clear and appropriately display your data. Keep in mind that when people are reading visualizations, they are taking in information to:
  1. Recognize what information the visualization is meant to convey.
  2. Identify all information that is being conveyed by each axis, including the range.
  3. Observe any trends or patterns in the data.
  4. Identify what statistical information is being visualized on the chart. (E.g., averages, variance, individual data points and the distribution of the data, outliers, etc.)
  5. Notice any significance markers.
  6. If this data is from a dataset, identify where the dataset came from and if it is credible.
This list of tips for reading visualizations is adapted from Krstevska (2026).

Interpreting visualizations
Data interpretation is ultimately out of your control, but not beyond your influence. Based on your results and  how your figures are designed, a reader will draw their own inferences about your data and overall claims. 

Interpretation requires the reader to make conclusions about your data based on the visualization you made. For example, let’s say you are showing a bar graph but the data consists of individual measurements from multiple subjects. A reader may wonder what the distribution of the data looks like and would be left unsatisfied because a bar graph conceals it. If you included the data points superimposed on the bar graph then the reader wouldn’t be left wondering what the distribution of the data looks like and/or question your visualization methods. 

Studies on how people infer information from visualizations have also been conducted! Pinker (1990) found that readers are better at determining data on absolute values with bar charts while determining data involving slopes from line charts. Another study found that people are more likely to associate discrete comparisons or categorical variables with bar graphs, while they are more likely to associate continuous variables (or values described with trends of increasing, decreases, etc.) with line charts (Zacks and Tversky, 1999). They also found that the types of data shapes how people choose to graph it. 

These studies show that figures influence our perception of data and vice versa. They also emphasize that how a graph is designed greatly influences how a reader will interpret your data. Keeping in mind that unspoken conventions or expectations of data or visualizations could influence your readers’ interpretation of your data should always be a consideration.

By choosing appropriate charts and making them clear and well formatted, you shape how your data is read and help guide the interpretation.

The most rigorous figure is the one that makes statistical results intuitive before a single number is read.

2.4 Visual pitfalls and how to avoid them

Even experienced researchers fall into predictable traps when visualizing data. These pitfalls rarely stem from carelessness. Rather, they arise from habits, software defaults, or the desire to make results look “clean.” Recognizing them early helps ensure your figures remain faithful to the data they represent.

Below are some of the most common visualization missteps that prevent replication of findings or misinterpretation of results, and how to avoid them.

Even small visualization errors can erode trust in scientific findings. By being alert to these pitfalls and correcting them early, researchers reinforce the transparency and rigor that make data visualization a cornerstone of credible science.

Clarity in visualization means showing enough data for others to see what you saw.

2.5 Linking visualization and statistical thinking

In rigorous research, visualization and statistical analysis are not separate steps. They are two sides of the same reasoning process. The way you plot data should emerge naturally from how you collected it and what question you are trying to answer.

Before creating a figure, take a moment to think through the logic of your dataset.

  • What kind of variable are you working with: continuous, categorical, or a proportion?
  • Are your samples independent, or are they paired measurements from the same individuals?
  • Are your values distributed symmetrically or with noticeable skew and outliers?
  • And finally, what question is your analysis really asking: a difference in averages, a difference in medians, or a consistent change within individuals?

Each of these considerations points toward a specific statistical test and a visualization that communicates its results accurately. When the analysis and the plot type match, the figure feels intuitive and credible; when they diverge, the viewer is left uncertain about what is being shown.

For example, when data are normally distributed and independent, a t-test and a simple bar graph with error bars convey the main result clearly. But when distributions are skewed or contain outliers, a boxplot with the raw data points overlaid gives a truer picture and supports a non-parametric test like the Mann–Whitney U.

Paired data, by contrast, call for a visualization that highlights within-subject changes, such as a paired-line plot or a dot plot connecting pre- and post-values, paired with a Wilcoxon or paired t-test.

The table below summarizes these relationships:

Data structure

Typical test

Recommended plot

Normal, unpaired (independent)

t-test

Bar graph with error bars; typically shows mean ± standard or SEM

Non-normal (skewed or contain outliers), unpaired

Mann–Whitney U test

Boxplot with raw data overlay; typically shows medians with IQR

Normal, paired

Paired t-test

Paired-line plot with mean ± SEM

Non-normal, paired

Wilcoxon signed rank test

Paired-line or dot plot showing medians

When the elements of data structure, test, and visualization align, the result signals methodological rigor. A figure that communicates how data were analyzed allows others to evaluate and reproduce your reasoning.

Deep diveNull results are real results
Why does the scientific community neglect null findings?
To understand the impact of not reporting null results, Springer Nature conducted a survey from over 11,000 researchers. They found 85% believe that sharing null results is important, 68% generated null results, and only 30% submitted the findings to a journal.

But why didn’t they submit their findings?

Among those surveyed, 69% expressed the concern that “null results are unlikely to be accepted for publication by journals”. And 21% report that they are concerned that publishing null results could impact their career or reputation.

To help mitigate these concerns, Springer Nature and others are not only stressing the importance of sharing null findings, but actively encouraging researchers to share their findings. They state:
“The benefits of publishing null results in a journal are clear: they contribute to the overall understanding of a topic; promote transparency and rigour; and help prevent unnecessary duplication of research efforts thereby reducing the waste of funding. Moreover, publishing these findings enables them to reach a global audience rather than remaining limited to a researcher’s immediate network or conference attendees, leading to greater equity.”
So, when should you include null findings in your main figures?
Sometimes you may want to show a treatment didn’t have an effect as a control. Here, the null findings are serving a specific purpose to reinforce your findings. You would want to show these data in the appropriate figure in the main results section.

Should you include null results that contradict your research question or hypothesis?
Yes! If the literature and your research question point to one possible conclusion yet you find no effect despite proper controls and a well-designed experiment, you should report this and show the data in the main findings. It’s possible that others had the same results, but didn’t report them as they thought they were contradictory. Your report could be the first of many that expands on a research topic.

What if the null results don’t add to your claim?
The question we need to ask ourselves isn’t whether or not the results add the argument you are trying to make with your data. Rather, we need to think about how both significant and non-significant findings aid us in understanding the complete research topic.

You should still include these visualized data in the supplemental materials. This section allows for you to include additional findings that allow for transparency about all the results of your study. By including non-significant data in the supplemental, you’re not minimizing the importance, rather you’re ensuring that these results are still reported and accessible to the scientific community.

By including null findings in your results or supplemental sections, you are actively contributing to the advancement of science, and that in itself is significant.

2.6 Why this matters for neuroscientists

Spanning cells, circuits, and behavior, neuroscience data are notoriously noisy, variable, and hierarchical. These complexities amplify the consequences of poor visualization. A truncated scale or hidden pairing can make an insignificant neural response look groundbreaking or mask subtle but real changes across trials.

For example, representing neural firing rates with mean ± SE might imply precision that does not exist, especially when variability between cells is large. Displaying the same data as individual points or boxplots reveals the heterogeneity inherent in biological systems.

Transparent visualization practices not only strengthen your conclusions but also protect others from building on misleading findings. Rigor in plotting is, therefore, as essential as rigor in experimental design or statistical analysis.

A figure that tells the truth, even when the truth is messy, is an invaluable contribution to scientific rigor.

Takeaways
  • Data structure determines visualization. Always align figure type with distribution and design.
  • Bar graphs are suitable for normal, unpaired data; boxplots for non-normal or outlier-rich data.
  • Paired designs demand plots that emphasize within-subject change.
  • Plot choice and statistical analysis must agree.
  • Transparency (showing distribution, outliers, and pairing) promotes rigor and reproducibility.
  • Visualization is analytical reasoning made visible.
Reflection Questions
  • Think about your most recent figure. Did its visual form match the assumptions of your analysis?
  • Could someone unfamiliar with your study infer, just by looking, whether your data were paired or independent, normal or skewed?
  • What might someone misunderstand from your figure?