GazeR: A Package for Processing Gaze Position and Pupil Size Data

Academic Article


  • Eye-tracking is widely used throughout the scientific community, from vision science and psycholinguistics, to marketing and human-computer interaction. Surprisingly, there is little consistency and transparency in preprocessing steps, making replicability difficult. To increase replicability and transparency, a package in R (a free and widely used statistical programming environment) called gazeR was created to read in and preprocess two types of data from the SR EyeLink eye tracker: gaze position and pupil size. For gaze position data, gazeR has functions for: reading in raw eye-tracking data, formatting it for analysis, converting from gaze coordinates to areas of interest, and binning and aggregating data. For data from pupillometry studies, the gazeR package has functions for: reading in and merging multiple raw pupil data files, removing observations with too much missing data, eliminating artifacts, blink identification and interpolation, subtractive baseline correction, and binning and aggregating data. The package is open-source and freely available for download and installation: We provide step

  • Authors

    Digital Object Identifier (doi)

    Pubmed Id

  • 22344553
  • Author List

  • Geller J; Winn M; Mahr T; Mirman D