Time-series slope over a range

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

Dataset

  • series_slope (generated) — A generated series: x from 0 to 40, y flat, then rising linearly between x = 10 and x = 30, then flat again, with noise; fixed seed.
  • Data file (the same format serves MinutePlot and R): series_slope.csv — one column per variable; paste it into the app, and keep it in the R script’s folder.

Setup

In MinutePlot:

  • Workbench → Time-series slope over a range → paste series_slope.csv (x, y) → window from 10 to 30 → method linear regression → the run button.
  • No sample-name column.

In R:

  • Base R only; then run series_slope.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:

  • Selected window: x from 10 to 30 inclusive (21 points). MinutePlot fits an ordinary least-squares line to the points inside the window and reports the slope, intercept, standard error of the slope, R² and p. R reference: lm(y ~ x) on the subset.

Side-by-side results

Slope over the window x ∈ [10, 30]

MinutePlot®

SlopeInterceptSE (slope)pn
0.774612.11190.03770.9570< 0.000121

R

SlopeInterceptSE (slope)pn
0.774612.11190.03770.9570< 0.000121

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

Verdict

Slope 0.7746 (SE 0.0377), intercept 12.1119, R² 0.9570, p < 0.0001 on the 21 points of the window -- identical to R’s lm on the subset.

R script

series_slope.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.