Object Definitions

EyerObject()

Returns empty eyer object

AreaObject()

Defines AreaObject

is_valid_eyer()

Returns if passed object is valid eyer object

load_eyer_data()

Loads data from a folder. Loads preprocessed events, gaze and fixations files

is.eyer()

Is obj eyer object?

Preprocessing

Preprocessing of the

add_area_column()

Add area column to object data

change_resolution()

Approximates x, y resolution from given coordinates to designated

remove_out_of_bounds()

Removes points out of resolution boundary

remove_out_of_bounds(<eyer>)

Removes points out of resolution boundary

downsample()

Downsamples data

downsample(<eyer>)

Downsamples eyer gaze data

flip_axis()

Flips the given axis to its negative

recalibrate_eye_data()

Recalibrates eyetracking data

save_eyer()

Saving eyer object into raw or parsed structure

Getters

filter_times()

Filters data between start and end time

filter_times(<eyer>)

Filters data between start and end time

Analysis

Analytical function to provide summative output

analyse_gaze_areas()

Analyses number of gaze points in each area

analyse_fixation_areas()

Analyses time spent in each area

Visualisations

plot_fixations()

Plot fixations data

plot_fixations(<eyer>)

Plot fixations and their durations

plot_gaze()

Plots gaze data

plot_gaze(<eyer>)

Plots gaze data

plot_gaze_heatmap()

Plot heatmap of gaze information

plot_gaze_heatmap(<eyer>)

Plot heatmap of gaze information

plot_eye_heatmap()

Generic function to plot eye heatmap

geom_eyer_monitor()

Plots monitor boundaries around data

Custom geoms

ggplot geoms to plot data

geom_monitor_boundaries()

Plots monitor boundaries

geom_area_boundaries()

Plots area boundaries

Synchronization

Functions to synchronize eyetracker data with other experimental data

eye_synchro_acceptable()

This function decides whether the list is acceptable

eye_to_unity_times()

replaces eyetracker_times for quest_times

find_better_match()

Returns either a list with best synchronised event or NULL if none is found

find_group_match()

tries to find a sequency of N elements in eye_durations that correspond to the synchro durations returns index of first matchin eye event

find_preprocessed_files()

returns filepaths of preprocessed fixations and events

try_fit_event()

Returns a data frome with synchronising times for each set Table is in format of set_id, time_eyetracker, time_unity

Generic helpers

Helper functions

remove_out_of_bounds(<data.frame>)

Removes points out of resolution boundary