scanpathPlot: This function reads in a picture file specified by the user,...

Description Usage Arguments Value Examples

Description

This function reads in a picture file specified by the user, then overlays it with a heat map computed according to user specifications.

Usage

1
2
3
4
scanpathPlot(dframe, pict, path = ".", outputtitle, dx = 0, dy = 60,
  alphaLevel = 0.4, arrows = T, pathAlpha = 0.8, pathSize = 0.7,
  sColor = "red", mColor = "green", eColor = "blue", x0 = -1, y0 = -1,
  x1 = -1, y1 = -1)

Arguments

dframe

Data frame containing the data to be used, with at least $x, $y, and $dur

pict

String giving the base name of the PNG file to be used, e.g., "background.png"

path

String giving the path of the PNG file to be used, e.g., path=getwd()

outputtitle

Optional argument, allowing the user to specify the output title

dx

Optional argument, adjustment to x dimension, default to 0px

dy

Optional argument, adjustment to y dimension, default to 60px

alphaLevel

Optional argument, transparency level, default to 0.4

arrows

Optional argument, whether to draw arrows or just fixations; default to T

pathAlpha

Optional argument, transparency level for paths, default to 0.8

pathSize

Optional argument, path size default to 0.7

sColor

Optional argument, starting color, default to "red"

mColor

Optional argument, median color, default to "green"

eColor

Optional argument, end color, default to "blue"

Value

ggplot object: heat map or fixation map of gaze time overlayed onto a picture read from file

Examples

1
2
scanpathPlot(tmp, paste(storyName, ".png", sep=""), path=getwd(),
    alphaLevel = alphaLevel)

garyfeng/pdata documentation built on May 16, 2019, 5:42 p.m.