This function replicates the exact detrending visualization from the
glassbox() interactive preview mode. It uses robust_plot() to show the
most recent detrended pupil signal overlaid with the fitted linear trend.
plot_detrend_overlay(
pupil_data,
pupil_steps,
preview_n = preview_n,
plot_params = list(),
suppress_prompt = TRUE
)Logical indicating whether detrend overlay was plotted successfully
A single block of pupil time series data
(e.g. eyeris$timeseries$block_1)
Number of columns for par(mfrow). Default = 3.
A named list of additional parameters to forward to
robust_plot()
Logical. Whether to skip prompting. Default = TRUE.