gazeHeatmap: 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
gazeHeatmap(dframe, pict, path, outputtitle = "User Output",
  colormin = "white", colormax = "red4", screendim = c(1680, 1050),
  transparancyLevel = 0.4, ngridpoints = 100, showFixations = F)

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 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

Value

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

Examples

1
2
3
gazeHeatmap(tmp, paste(storyName, " Summary", sep=""), path=getwd(),
    screendim = screenSize, transparancyLevel = alphaLevel, ngridpoints = 200,
    showFixations = F)

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