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

View source: R/aois.R

add_aoisR Documentation

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

Description

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"

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.

Value

an updated dataframe


tjmahr/littlelisteners documentation built on July 31, 2024, 6:02 a.m.