This function creates a scanpath for a fixation group. Saccades join consecutive rows, so rows should be in temporal order. Rows are not re-sorted by onset: a group that pools several viewings (onsets restarting at each viewing) keeps each viewing's fixations together.
Usage
# S3 method for class 'fixation_group'
scanpath(x, ...)Examples
# Create a fixation group
fg <- fixation_group(x = 1:5, y = 6:10, duration = rep(0.2, 5), onset = 1:5)
# Create a scanpath for the fixation group using the S3 generic
scanpath_obj <- scanpath(fg)