Reality Bending Lab › News › Lighthouse plots: shining a light on differences

Lighthouse plots: shining a light on differences

2026-10-13 · Methods · Dominique Makowski

Jeffrey Girard, the newest member of the easystats team (and the fastest issue-tackler), has just spent some time improving one of our most underrated features: lighthouse plots. If you've never heard of them, that is not really surprising: they originated in one of our GitHub issues, a long time ago, when I was thinking of how to best convey condition differences in within-participant designs, but that idea never saw the light it deserved.

A puzzle

Here are two studies. In each, 30 participants got two scores: once in condition A, once in condition B. For each condition, the figure shows the distribution of the scores, and the mean with its 95% confidence interval.

Two identical-looking panels, Study 1 and Study 2, each showing the distribution of scores in conditions A and B with their means and heavily overlapping 95% confidence intervals.
Two studies, two conditions. Each condition's mean and 95% CI, over the distribution of its scores.

Is there a difference between A and B? The intervals overlap a lot: the mean of B even falls inside the interval of A. The tempting reading, and a very common one (researchers do it routinely when reading error bars; Belia et al., 2005), is that the difference is probably not significant, in either study. After all, the two figures look the same.

But they are not the same. In Study 1, the difference between A and B is about as conclusive as statistics gets (t(29) = 13.5, p < .001). In Study 2, there is no evidence for it at all (t(29) = 1.0, p = .33).

The reveal

The difference between the two studies is not in the conditions. It is in the participants. Join each participant's two scores with a line, and the two studies stop looking alike:

The same two panels with each participant's scores in A and B joined by a line. In Study 1 all lines go up, almost parallel. In Study 2 the lines go up and down and cross each other.
The same figure, with each participant's score in A joined to their score in B.

In Study 1, every single participant scores higher in B than in A. By a little (about three points), but all 30 of them, all in the same direction. In Study 2, the lines go everywhere: 19 participants go up, 11 go down, some of them by twenty points or more.

A man miming his mind being blown, his head dissolving into a starfield.Now the twist: the two figures do not just look the same, they are the same. Both studies contain exactly the same 30 scores in A, and exactly the same 30 scores in B. The only thing I changed for Study 2 is who got which score in B: I shuffled them across participants. So the means, the standard deviations, the distributions and the confidence intervals of each condition are identical to the last decimal. So is the average difference between A and B (2.88 points). What differs is how consistent that difference is from one participant to the next.

As I often repeated in my career: the uncertainty around each estimate tells us little about the uncertainty around the difference between them. The interval around the mean of A answers the question where is A? Whether A and B differ is another question, and its answer depends on something a plot of the two conditions cannot show: how the two sets of scores relate to each other. In a repeated-measures design like this one, the overlap of the intervals tells you nothing. Even with two independent groups, where it is at least related to the answer, the rule is not "overlap means non-significant": two 95% intervals can overlap by as much as half an arm and the difference still be significant (Cumming & Finch, 2005).

Joining the dots works for two conditions and a few dozen participants. It stops working as soon as the means come from a model: adjusted for covariates, averaged over other factors, estimated within each level of a moderator. What we need then is a way to draw the uncertainty of the difference itself, right next to the means it is the difference of.

Enter the lighthouse

In April 2019, I opened an issue on see about exactly this problem. Russ Lenth, the author of emmeans, had laid out the existing ways of plotting pairwise comparisons, and none of them was satisfying: diagonal "diffograms" that are hard to label, comparison arrows that cannot always be drawn, and letter displays (means that share a letter do not differ) that reduce everything to a yes or a no.

The idea was to keep the usual plot of the means with their intervals, and to add, for each pair of conditions, a lighthouse. It stands on one mean and casts a beam of light towards the other. When the beam arrives at the other condition, its width is the confidence interval of the difference, measured from the lighthouse's own height. So the beam always lands centred on the other mean, and its spread says how sure we are about where that mean is relative to the lighthouse, rather than where it is in absolute terms.

Reading one comes down to the two edges of the beam. If both edges tilt the same way (both rising, or both falling), the difference is significant: every plausible value of the difference has the same sign. If one edge rises while the other falls, the beam straddles the horizontal, and a difference of zero is plausible. This is no accident of drawing: the tilt of each edge is set by one bound of the confidence interval of the difference.

Lighthouse plots of the two studies. In Study 1 a thin grey beam runs from the mean of B to the mean of A, and both of its edges slope the same way. In Study 2 a wide grey beam from B has one edge sloping up and the other sloping down, on either side of a dashed horizontal line.
Lighthouse plots of the two studies. In black, each condition's mean and 95% CI, identical in both panels. In grey, the beam: the 95% CI of the difference between B and A, cast from B. The dashed horizontal line, added here as a reading aid, makes it easier to see which way each edge tilts.

In Study 1, the beam is a needle: both of its edges rise from A to B, because every participant agreed on the direction of the difference. In Study 2, it is a floodlight: one edge rises from A to B, the other falls. The intervals around the means are the same in both panels, as they should be, since they are the same means. Each interval now does one job, and neither pretends to answer the other's question.

Making one

A lighthouse plot is what see draws when you plot contrasts from modelbased together with the means they compare. Any model that modelbased supports will do. Here, a mixed model with a random intercept for each participant:

library(lme4)
library(modelbased)
library(see)

model <- lmer(Score ~ Condition + (1 | Participant), data = data)

means <- estimate_means(model, by = "Condition")
contrasts <- estimate_contrasts(model, contrast = "Condition")

plot(contrasts, means)

Thank you, Jeffrey, for reviving and robustifying lighthouse plots. Now is a good time to try them, and to tell us if they need more fixing.

Keep reading

Click to Open
Reality Bending Lab

Exploring the neuropsychology of reality and its distortions.

The Reality Bending Lab, led by Dominique Makowski at the University of Sussex in Brighton, UK, conducts world-leading research on reality perception, illusions, fake news, AI-beliefs, deception and its links with emotions, cognitive control and the Self. Using recording signals from the body (ECG, EDA…) and the brain (EEG), we analyse data using advanced modelling (Bayesian statistics, chaos theory, computational models) and develop open-source tools to improve neuropsychological science.

“Do not try to bend the spoon — that’s impossible. Instead, only try to realise the truth: there is no spoon. Then you'll see that it is not the spoon that bends, it is only yourself.”

People

Information

Where to find us

The Reality Bending Lab is based in the School of Psychology, at the University of Sussex in Brighton, UK.

Pevensey 1 - room 2B7, School of Psychology, University of Sussex, BN1 9QH

The University of Sussex campus in the South Downs University of Sussex crest

University of Sussex

Brighton is the sunniest city in the UK and, by some margin, its most cheerfully strange — on the sea, an hour from London. The University of Sussex sits just above it in the South Downs, and its School of Psychology is one of the largest and strongest in the country.

It is famous for its research on consciousness and interoception, with scientists like Anil Seth, Andy Clark, Zoltan Dienes and Hugo Critchley, its teaching of cutting-edge psychological methods (with stats rockstar Andy Field), its history of multidisciplinary research (arts and science), and its radical engagement in open and disruptive science.

Join this community

Hire us Join the Lab Like this website? See how to get yours