R: Interactive Diagnostic Plot of Samples and Fixations
diagnostic.plot
R Documentation
Interactive Diagnostic Plot of Samples and Fixations
Description
Shows the raw samples and the detected fixations in an interactive
plot. This plot can be used to screen the data and to diagnose
problems with the fixation detection.
Usage
diagnostic.plot(samples, fixations)
Arguments
samples
a data frame containing the raw samples as recorded
by the eye-tracker. This data frame has to have the following
columns:
time:
the time at which the sample was recorded
x:
the x-coordinate of the sample
y:
the y-coordinate of the sample
Samples have to be listed in chronological order. The velocity
calculations assume that the sampling frequency is constant.
fixations
a data frame containing the fixations that were
detected in the samples. This data frame has to have the following
columns:
start:
the time at which the fixations started
end:
the time at which the fixation ended
x:
the x-coordinate of the fixation
y:
the y-coordinate of the fixation
Value
A recording of the final plot. Can be re-plotted using
replayPlot.
Details
The function will open an interactive plot showing the
samples and fixations. Red dots represent the x-coordinate and
orange dots the y-coordinate. The gray vertical lines indicate the
on- and offsets of saccades and horizontal lines the coordinates of
the fixations. Instructions for navigating the plot are displayed
on the console.