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