Skip to contents

Map the x and y positions of looks to Areas of Interest.

Usage

add_aois(x, aois, default_onscreen = "tracked")

Arguments

x

a dataframe of looking data

aois

an AOI or list of AOIs

default_onscreen

default label to use for a look onscreen that does not fall into an AOI. Default is "tracked"

Value

an updated dataframe

Details

The function current assumes the conventions used in our lab. It will create a column called GazeByAOI with the label of the AOI for each look. It does this by checking whether the columns XMean and YMean fall into to the boundaries of the AOI.

Offscreen looks receive NA.