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 | gazeHeatmap(dframe, pict, path, outputtitle = "User Output",
colormin = "white", colormax = "red4", screendim = c(1680, 1050),
transparancyLevel = 0.4, ngridpoints = 100, showFixations = F)
|
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 or JPEG file to be used, e.g., "background.png" |
path |
String giving the path of the PNG or JPEG file to be used, e.g., path=getwd() |
outputtitle |
Optional argument, allowing the user to specify the output title |
colormin |
Optional argument, allowing the user to specify the color corresponding to the lowest value of the heat map |
colormax |
Optional argument, allowing the user to specify the color corresponding to the highest value of the heat map |
screendim |
Optional argument, allowing the user to specify the dimensions of the screen that was viewed |
transparancyLevel |
Optional argument, allowing the user to set the transparancy level of the heat map |
ngridpoints |
Optional argument, allowing the user to set the resolution of the heat map |
showFixations |
Optional argument, to show individual fixations if TRUE; default to FALSE for heat map |
ggplot object: heat map or fixation map of gaze time overlayed onto a picture read from file
1 2 3 | gazeHeatmap(tmp, paste(storyName, " Summary", sep=""), path=getwd(),
screendim = screenSize, transparancyLevel = alphaLevel, ngridpoints = 200,
showFixations = F)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.