gazeTimeHist: plot distribution of gaze time, in seconds (assuming input in...

Description Usage Arguments Value Examples

Description

plot distribution of gaze time, in seconds (assuming input in ms), by subject and by task user can specify input variables subject, time variable, task variable as well as title, subject variable lable and task variable label

Usage

1
2
gazeTimeHist(df1, SubVar, TimeVar, TaskVar, MainTitle = "User Output",
  SubVarLabel = "Subject ID", TaskLabel = "Task")

Arguments

df1

Input data frame that contains the variables specified by the arguments below, so at the very least three variables: a variable with a subject ID, a variable with the gaze time to be plotted, and variable with a Task ID

SubVar

The name of the variable in df1 that contains the subject ID

TimeVar

The name of the variable in df1 that contains the gaze time

TaskVar

The name of the varaible in df1 that containts the task variable

MainTitle

Optional argument, allows the user to set the title printed above the histogram

SubVarLabel

Optional argument, allows the user to set the label of the subject variable (visible in plot legend)

TaskLabel

Optinoal argument, allows the user to set the label of the Task variable (X-axis label)

Value

ggplot object: histogram of gaze time, by subject and task

Examples

1
2
gazeTimeHist (df1, SubVar, TimeVar, TaskVar,
    MainTitle="User Output", SubVarLabel="Subject ID", TaskLabel="Task")

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