smoother | R Documentation |
A wrapper for the stats::loess function, with default parameters suitable for smoothing raw eye data
smoother(data, span = 0.05, plot = FALSE)
data |
A dataframe with raw data (time, x, y, trial) for one participant |
span |
From stats::loess. The parameter alpha which controls the degree of smoothing. |
plot |
whether to plot the raw and smoothed plot for inspection |
Analyses data separately for each unique combination of values in pID
and trial
.
a dataframe of the same shape as the input data
data <- combine_eyes(HCL)
smoother(data)
#with an inspection plot
smoother(data, span = .02, plot = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.