add_scanpath.eye_table | R Documentation |
This function adds a scanpath to an eye table.
## S3 method for class 'eye_table'
add_scanpath(x, outvar = "scanpath", fixvar = "fixgroup")
x |
An eye table object. |
outvar |
The output variable name for the scanpath. Defaults to "scanpath". |
fixvar |
The fixation group variable name. Defaults to "fixgroup". |
An eye table object with the added scanpath.
# Create an eye table with a fixation group
df <- data.frame(x = 1:5, y = 6:10, fixgroup = rep(1, 5))
eye_table_df <- as_eye_table(df)
# Add a scanpath to the eye table
eye_table_df <- add_scanpath.eye_table(eye_table_df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.