Three-way ANOVA + Tukey letters

MinutePlot® and R on the same data. MinutePlot version 1.0.0; R 4.5.2.

Dataset

  • npk (N × P × K) — Yield of peas in a 2×2×2 factorial on 6 blocks (R: datasets::npk); all three factors used.
  • Data format for MinutePlot: npk_threeway_minuteplot.csv — arranged exactly as the app’s data template for this test expects (paste it into the app).
  • Data format for R: npk_r.csv — the long-format file the R script reads (keep it in the script’s folder).
  • R built-in: the script loads npk with data().

Setup

In MinutePlot:

  • Workbench → Three-way ANOVA → paste npk_threeway_minuteplot.csv (K as the super-header, P blocks under each K, three replicates, N down the rows).
  • Post-hoc test: Tukey HSD (the default) · significance level α = 0.05 (the default) → Confirm and Analyze.
  • Read the ANOVA table and the cell means with letters from the results; the page compares the all-cells letter set.

In R:

  • Install once: install.packages(c("emmeans", "multcomp", "multcompView")); then run npk_threeway.R top to bottom (source it, or paste it into the console) with the R data file in the same folder.
  • R 4.5.2 and the package versions in the page header; each script prints the versions it runs under.

The analysis:

  • Three-way ANOVA of yield by N, P and K (each 0/1) with all interactions, n = 3 per cell, α = 0.05.
  • Interactions: every two-way term and the three-way term are tested and listed; the pairwise comparisons and letters are on the 8 cell means (the highest-order grouping MinutePlot reports), Tukey HSD.
  • Blocks are omitted to match MinutePlot’s fully crossed design; this entry is a software comparison, not a recommended analysis of npk.

Side-by-side results

ANOVA summary (main effects and interactions)

MinutePlot®

TermdfFp
N1, 166.16080.0245
P1, 160.27350.6082
K1, 163.09860.0975
N × P1, 160.69270.4175
N × K1, 161.07850.3145
P × K1, 160.01570.9019
N × P × K1, 161.20430.2887

R

TermdfFp
N1, 166.16080.0245
P1, 160.27350.6082
K1, 163.09860.0975
N × P1, 160.69270.4175
N × K1, 161.07850.3145
P × K1, 160.01570.9019
N × P × K1, 161.20430.2887

R values: verified in R 4.5.2 (see the verdict).

Cell means with significance letters

MinutePlot®

NPKMeanLetters
N0P1K150.500a
N0P1K054.333a
N0P0K152.000a
N0P0K051.433a
N1P1K154.367a
N1P1K057.933a
N1P0K154.667a
N1P0K063.767a

R

NPKMeanLetters
N0P1K150.500a
N0P1K054.333a
N0P0K152.000a
N0P0K051.433a
N1P1K154.367a
N1P1K057.933a
N1P0K154.667a
N1P0K063.767a

R values: verified in R 4.5.2 (see the verdict).

In the app each cell carries a compound label such as Aa (Aa1 with three factors): uppercase compares the first factor within each level of the second, lowercase the reverse (the digit the third factor). The plain letters shown here are MinutePlot’s single letter set over all cells, the direct counterpart of R’s cld(). MinutePlot assigns “a” to the highest mean, R to the lowest — a display convention, not a discrepancy; the grouping (which cells share a letter) is what is compared.

Verdict

All seven F and p values agree to R's printed values (tolerance 0.001); letters identical -- no cell differs from any other in either tool (all a).

R script

npk_threeway.R — each script loads its data, prints its versions and the R-side tables shown above, in page order; no plotting.

R values verified in R 4.5.2 (emmeans 2.0.4, multcomp 1.4-32, multcompView 0.1-12, ez 4.5.0, Hmisc 5.3.0, pls 2.9.0, drc 3.0-1, car 3.1-5) on 16–17 September 2026.