Description Usage Arguments Value Examples
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
1 2 | gazeTimeHist(df1, SubVar, TimeVar, TaskVar, MainTitle = "User Output",
SubVarLabel = "Subject ID", TaskLabel = "Task")
|
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) |
ggplot object: histogram of gaze time, by subject and task
1 2 | gazeTimeHist (df1, SubVar, TimeVar, TaskVar,
MainTitle="User Output", SubVarLabel="Subject ID", TaskLabel="Task")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.