edf.plot: Create a fixation scatterplot from EDF

View source: R/utilities.R

edf.plotR Documentation

Create a fixation scatterplot from EDF

Description

This creates a scatterplot of fixations read from an EDF file.

Usage

edf.plot(EDFfile = NULL, fixdata = NULL, outfile = NULL, outlier.rm = F,
  res = NULL, flip = T, theme = "black", crosshairs = T,
  plot.title = "")

Arguments

EDFfile

path to an EDF file. If you have already-loaded data, leave this as NULL

fixdata

optionally you can provide a data frame of already imported fixation data from edf.events. It expects the fields gavx and gavy

outfile

if provided, it will save the plot as a PDF with this file name

outlier.rm

logical specifying whether to remove outlier fixations (>3SDs from mean)

res

array specifying resolution of monitor. Only this region will be plotted.

flip

logical indicating whether to flip the y axis so origin is in upper-left (defualt=TRUE).

theme

either "black" or "white" specifying the plot theme (yellow on black or black on white)

crosshairs

logical whether to plot crosshairs over the median x and y coordinates (dotted red lines)

plot.title

title to put at the top of the plot

Author(s)

Jason Hubbard, hubbard3@uoregon.edu

Examples

## Not run: 

edf.plot('/path/to/edffile.edf',outfile='~/Desktop/edfplot.pdf',res=c(1024,768))

#just plot, don't save the PDF
edf.plot('/path/to/edffile.edf',res=c(1024,768),theme='white',plot.title='Fixations')


## End(Not run)

jashubbard/edfR documentation built on Aug. 4, 2022, 5:18 p.m.