merge_adjacent_fixations | R Documentation |
Merge fixations which appear close in space and time. This function is called by other functions and typically not used outside them
merge_adjacent_fixations(
fixations,
gaze_raw,
distance.threshold = 0.5,
ms.threshold = 75,
one_degree = 40,
xcol = "x.raw",
ycol = "y.raw"
)
fixations |
Data frame with fixations |
gaze_raw |
Data matrix with raw data. See description of the algorithm_ivt function |
distance.threshold |
Subsequent fixations occurring withing this distance are merged. Set to 0 if you don't want to merge fixations. |
ms.threshold |
Maximum time elapsed between fixations to be merged. |
one_degree |
One degree of the visual field in the scale of the x and y coordinates. Typically pixels or proportion of the screen. Make sure the setting matches your data. |
xcol |
X coordinates in the raw gaze data matrix (gaze_raw) |
ycol |
Y coordinates in the raw gaze data matrix (gaze_raw) |
A new data frame with fixations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.