smoother {eyetools} | R Documentation |
Smoothing of raw data
Description
A wrapper for the stats::loess function, with default parameters suitable for smoothing raw eye data
Usage
smoother(data, span = 0.05, plot = FALSE)
Arguments
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 |
Details
Analyses data separately for each unique combination of values in pID
and trial
.
Value
a dataframe of the same shape as the input data
Examples
data <- combine_eyes(HCL)
smoother(data)
#with an inspection plot
smoother(data, span = .02, plot = TRUE)
[Package eyetools version 0.9.2 Index]