add_aois.Rd
Map the x and y positions of looks to Areas of Interest.
add_aois(x, aois, default_onscreen = "tracked")
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 |
an updated dataframe
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
.