Description Usage Arguments Value Examples
This function reads in a picture file specified by the user, then overlays it with a heat map computed according to user specifications.
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)
|
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" |
ggplot object: heat map or fixation map of gaze time overlayed onto a picture read from file
1 2 | scanpathPlot(tmp, paste(storyName, ".png", sep=""), path=getwd(),
alphaLevel = alphaLevel)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.