Skip to contents

Density and sampling

Functions for computing density maps, sampling, and density matrix.

eye_density()
eye_density
get_density()
get_density
sample_density()
sample_density
density_matrix()
Compute Density Matrix for a Given Object
eye_density(<fixation_group>)
Compute a density map for a fixation group.
gen_density()
This function creates a density object from the provided x, y, and z matrices. The density object is a list containing the x, y, and z values with a class attribute set to "density" and "list".
as.data.frame(<eye_density>)
Convert an eye_density object to a data.frame.

Spatial operations

Functions for manipulating spatial coordinates and transformations.

coords()
extract coordinates
rescale()
rescale
center()
Center Eye-Movements in a New Coordinate System
normalize()
Normalize Eye-Movements to Unit Range
match_scale()
Match Scaling Parameters for Fixation Data

Fixation operations

Functions for working with fixation sequences.

rep_fixations()
rep_fixations
sample_fixations()
sample_fixations
fixation_similarity()
Fixation Similarity
template_sample()
Sample density maps with coordinates derived from fixation groups.

Similarity

Functions for computing similarity between objects.

similarity()
Compute Similarity Between Two Objects
multi_match()
Compute MultiMatch Metrics for Scanpath Similarity
similarity(<scanpath>)
Compute Similarity Between Scanpaths
template_similarity()
template_similarity
repetitive_similarity()
Repetitive Similarity Analysis for Density Maps

Scanpath

Functions for creating and adding scanpaths.

scanpath()
Construct a Scanpath of a Fixation Group of Related Objects
add_scanpath()
Add Scanpath to Dataset
add_scanpath(<data.frame>)
Add Scanpath to a Data Frame
add_scanpath(<eye_table>)
Add Scanpath to an Eye Table
scanpath(<fixation_group>)
Create a Scanpath for a Fixation Group
anim_scanpath()
Animate a Fixation Scanpath with gganimate
calcangle()
Calculate the Angle Between Two Vectors
cart2pol()
Convert Cartesian Coordinates to Polar Coordinates
template_multireg()
Template Multiple Regression
template_regression()
Template Regression

Eye Table

Functions for working with eye tables.

as_eye_table()
Reapply the 'eye_table' Class to an Object
eye_table()
Construct an Eye-Movement Data Frame
simulate_eye_table()
Generate a Simulated Eye-Movement Data Frame
`[`(<eye_table>)
Subset an 'eye_table' Object
plot(<eye_density>)
Plot Eye Density
plot(<fixation_group>)
Plot a fixation_group object

Density by Groups

Functions for density operations by groups.

density_by()
Calculate Eye Density by Groups
sample_density(<density>)
Sample a smooth fixation density map with a set of discrete fixations.