Plot and inspect how preprocessing steps are changing the pupil data. An exploratory function to help determine preprocessing parameters. See https://dr-jt.github.io/pupillometry/ for more information.

pupil_plot(x, y, trial = "all", sub_title = "")

Arguments

x

data before preprocessing step.

y

data after preprocessing step.

trial

what trial(s) to plot. default = "all"

sub_title

subtitle for plot. default = ""

Output

Plots.

Usage

This function is primarily used within other preprocessing functions. (e.g., `pupil_smooth(plot = TRUE)`).