One-way ANOVA with post-hoc letters: a worked example

One-way ANOVA compares the means of three or more independent groups in a single test. The F-test tells you whether any groups differ; the post-hoc comparisons and their compact letters tell you which — which is what your figure ultimately needs to say.

The data

Grain yield (g per pot) under four fertiliser regimes, six pots each:

Values
r1r2 r3r4r5 r6
Control41.239.843.140.542.038.9
Low N45.647.244.946.845.146.3
High N50.352.149.751.450.848.9
N + P51.049.552.650.251.753.0

r = replicate: r1 is replicate 1, r2 replicate 2, and so on.

This is MinutePlot’s one-way layout: one row per group, replicates across the columns — paste it in exactly like this.

The test

ANOVA partitions the total variation into between-group and within-group parts; a large ratio of the two (the F statistic) means the group means differ more than chance allows. Here: F(3, 20) = 86.9, p < 0.001 — fertiliser affects yield. Assumptions (normal residuals by Shapiro–Wilk, similar group variances) hold for these data; MinutePlot reports the checks alongside every analysis.

Which groups differ? Tukey’s HSD and the letters

An overall p-value never answers the real question. Tukey’s honestly significant difference test compares every pair while keeping the overall false-positive rate at 5%, and the results compress into compact letter display: groups sharing a letter are not significantly different.

GroupMean ± SD (g) Letter
N + P51.33 ± 1.36a
High N50.53 ± 1.16a
Low N45.98 ± 0.93b
Control40.92 ± 1.52c

Read it directly: both high-nitrogen regimes beat low N, which beats the control; adding phosphorus on top of high N gave no further detectable gain (the two share the letter a).

Bar chart of yield by
fertiliser with compact letter display

The finished figure: means, error bars, and the letters placed automatically — this is the panel a journal expects.

Report it like this

“Fertiliser regime affected yield (one-way ANOVA, F(3, 20) = 86.9, p < 0.001). Yields under High N and N + P exceeded Low N, which exceeded the control (Tukey HSD, p < 0.05); different letters in Fig. 1 indicate significant differences.”

Try it yourself — in a minute. Paste the table above into MinutePlot, press Confirm and Analyze, and you will get this exact analysis and a publication-ready figure with the letters placed for you. Open MinutePlot in your browser — free 14-day trial, no card needed.
References
  1. Tukey, J. W. (1949). Comparing individual means in the analysis of variance. Biometrics, 5(2), 99–114.
  2. Kramer, C. Y. (1956). Extension of multiple range tests to group means with unequal numbers of replications. Biometrics, 12, 307–310.
  3. Shapiro, S. S., & Wilk, M. B. (1965). An analysis of variance test for normality (complete samples). Biometrika, 52(3–4), 591–611. https://doi.org/10.1093/biomet/52.3-4.591
  4. Montgomery, D. C. (2017). Design and Analysis of Experiments (9th ed.). John Wiley & Sons.