Correlation matrix
MinutePlot® and R on the same data. MinutePlot version 1.0.0; R 4.5.2.
Dataset
- iris (numeric columns) — The four measurements of 150 iris flowers (R: datasets::iris), numeric columns.
- Data file (the same format serves MinutePlot and R): iris.csv — one column per variable; paste it into the app, and keep it in the R script’s folder.
- R built-in: the script uses iris.
Setup
In MinutePlot:
- Workbench → Correlation matrix → paste iris.csv → Preview data → first column is sample names UNticked → group column ticked for Species (the last column; grouping does not enter the coefficients) → Confirm → method Pearson → the run button.
- The four numeric columns are the variables; Species is never a variable.
In R:
- Install once:
install.packages(c("Hmisc")); then runiris_correlation.Rtop 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:
- Pearson correlation (MinutePlot’s default; Spearman and Kendall are options) on all 150 complete rows; two-sided p-values with no multiple-testing adjustment (MinutePlot’s default).
- R reference formulation: cor() for the coefficients and Hmisc::rcorr() for the p-values.
Side-by-side results
Correlation coefficients r
MinutePlot®
| Sep.L | Sep.W | Pet.L | Pet.W | |
|---|---|---|---|---|
| Sep.L | — | -0.1176 | 0.8718 | 0.8179 |
| Sep.W | -0.1176 | — | -0.4284 | -0.3661 |
| Pet.L | 0.8718 | -0.4284 | — | 0.9629 |
| Pet.W | 0.8179 | -0.3661 | 0.9629 | — |
R
| Sep.L | Sep.W | Pet.L | Pet.W | |
|---|---|---|---|---|
| Sep.L | — | -0.1176 | 0.8718 | 0.8179 |
| Sep.W | -0.1176 | — | -0.4284 | -0.3661 |
| Pet.L | 0.8718 | -0.4284 | — | 0.9629 |
| Pet.W | 0.8179 | -0.3661 | 0.9629 | — |
R values: verified in R 4.5.2 (see the verdict).
p-values
MinutePlot®
| Sep.L | Sep.W | Pet.L | Pet.W | |
|---|---|---|---|---|
| Sep.L | — | 0.1519 | < 0.0001 | < 0.0001 |
| Sep.W | 0.1519 | — | < 0.0001 | < 0.0001 |
| Pet.L | < 0.0001 | < 0.0001 | — | < 0.0001 |
| Pet.W | < 0.0001 | < 0.0001 | < 0.0001 | — |
R
| Sep.L | Sep.W | Pet.L | Pet.W | |
|---|---|---|---|---|
| Sep.L | — | 0.1519 | < 0.0001 | < 0.0001 |
| Sep.W | 0.1519 | — | < 0.0001 | < 0.0001 |
| Pet.L | < 0.0001 | < 0.0001 | — | < 0.0001 |
| Pet.W | < 0.0001 | < 0.0001 | < 0.0001 | — |
R values: verified in R 4.5.2 (see the verdict).
Verdict
Coefficients and p-values agree with R’s printed values (cor: e.g. 0.8718, −0.1176; Hmisc::rcorr p: 0.1519 and below 1e-4 elsewhere); no letters in this entry.
R script
iris_correlation.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.