getRegion | R Documentation |
For each fixation in a fixation report, this function will determine the Region of Interest that contains it, if any.
getRegion(fixReport, regionList, noRegnum = NA, noReglabel = "", supplement = TRUE)
fixReport |
A data.frame containing a fixation Report as may
be created by fixReport(). Must contain columns |
regionList |
A data.frame containing regions of interest. Must have columns with region bounds labeled 'left', 'right', 'top', 'bottom'. Regions are assumed to be rectangular. |
noRegnum |
A region number to assign fixations not contained
within any of the regions defined in |
noReglabel |
The label assigned to fixations outside of any
region defined in |
supplement |
If TRUE, getRegion() will return a data.frame consisting of fixReport suplemented with columns regnum and reglabel. If FALSE, return a 2 column data.frame with just those two columns. |
For each fixation in a fixation report, this function will find the Region of interest that contains it, if any.
Regions are assumed to be rectangular. Region bounds labeled as 'left', 'right', 'top', 'bottom'.
The value of supplement
determines whether to return
the region values within an enriched version of fixReport
,
or as a simple two column data.frame.
A data.frame including columns regnum and reglabel.
Dave Braze <davebraze@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.