Process and Analyze Mouse-Tracking Data
Create Bezier-curves using the Bernstein approximation.
Calculate bimodality coefficient.
Process and analyze mouse-tracking data
Add new trajectory to trajectory array.
Add new variables to trajectory array.
Aggregate mouse-tracking data per condition.
Aggregate mouse-tracking data per condition separately for each subjec...
Align trajectories.
Align start position of trajectories.
Align start and end position of trajectories.
Calculate movement angles.
Create gif trajectory animation.
Average trajectories across intervals.
Join two trajectory arrays
Assess bimodality of mouse-tracking measure distributions.
Check logging resolution by looking at timestamp differences.
Cluster trajectories.
Estimate optimal number of clusters.
Count number of observations.
Calculate distance, velocity, and acceleration.
Calculate deviations from idealized trajectory.
Creates a difference-heatmap of two trajectory heatmap images.
Compute distance matrix.
Exclude phase without mouse movement at end of trial.
Exclude initial phase without mouse movement.
Export mouse-tracking data.
Plot trajectory heatmap.
Plot trajectory heatmap using ggplot.
Creates high-resolution heatmap of trajectory data.
Import mouse-tracking data saved in long format.
Import mouse-tracking data recorded using the mousetrap plug-ins in Op...
Import mouse-tracking data saved in wide format.
Length normalize trajectories.
Map trajectories to prototypes.
Calculate mouse-tracking measures.
Plot trajectory data.
Add rectangles to trajectory plot.
Create PDF with separate plots per trajectory.
Plot density of mouse positions across time steps.
Create quantile-effect plot
Remap mouse trajectories.
Resample trajectories using a constant time interval.
General-purpose reshape and aggregation function for mousetrap data.
Calculate sample entropy.
Standardize variables in mouse trajectory array.
Spatialize trajectories.
Standardize mouse-tracking measures per level of other variables.
Filter mousetrap data.
Time normalize trajectories.
Generic print for class mt_heatmap_raw
Read MouseTracker raw data.
Objects exported from other packages
Scale and center variables within the levels of another variable.
Mouse-tracking, the analysis of mouse movements in computerized experiments, is a method that is becoming increasingly popular in the cognitive sciences. The mousetrap package offers functions for importing, preprocessing, analyzing, aggregating, and visualizing mouse-tracking data. An introduction into mouse-tracking analyses using mousetrap can be found in Wulff, Kieslich, Henninger, Haslbeck, & Schulte-Mecklenbeck (2023) <doi:10.31234/osf.io/v685r> (preprint: <https://osf.io/preprints/psyarxiv/v685r>).
Useful links