OverviewThe mousetrap package provides functions for importing, preprocessing, analyzing, aggregating, and visualizing mouse-tracking data. A structured overview is given in the general package documentation which can be accessed through one of the following links. |
|
---|---|
Process and analyze mouse-tracking data |
|
Mousetrap functionsBelow you find all mousetrap functions in alphabetical order. |
|
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 subject. |
|
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. |
|
A mousetrap data object. |
|
Raw mouse-tracking dataset for demonstrations of the mousetrap package |
|
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 OpenSesame. |
|
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. |
|
Mouse trajectory prototypes. |
|
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 |
|
Helper functionsA number of additional helper functions are provided. |
|
Create Bezier-curves using the Bernstein approximation. |
|
Calculate bimodality coefficient. |
|
Scale and center variables within the levels of another variable. |
|
Read MouseTracker raw data. |
|
Mouse-tracking datasetsBelow you find all datasets included in the mousetrap package in alphabetical order. |
|
Mouse-tracking dataset from Kieslich & Henninger (2017) |
|
Raw mouse-tracking dataset from Kieslich & Henninger (2017) |
|
A mousetrap data object. |
|
Raw mouse-tracking dataset for demonstrations of the mousetrap package |