robust_plot: Robust plotting function with error handling

View source: R/plot.eyeris.R

robust_plotR Documentation

Robust plotting function with error handling

Description

Builds a single-series pupil time series panel with reaborn, handling errors and missing data gracefully. Returns a ggplot object (rather than drawing directly) so callers can combine several panels into a single patchwork row before printing to the active device.

Usage

robust_plot(y, x = NULL, ...)

Arguments

y

The y-axis data to plot

x

The x-axis data (optional, defaults to sequence)

...

Additional arguments; col, main, xlab, and ylab control the line colour, title, and axis labels (any base-graphics style arguments such as type/lwd are accepted and ignored)

Value

A ggplot object


eyeris documentation built on Aug. 1, 2026, 1:07 a.m.