mousetrap3.2.3 package

Process and Analyze Mouse-Tracking Data

bezier

Create Bezier-curves using the Bernstein approximation.

bimodality_coefficient

Calculate bimodality coefficient.

mousetrap-package

Process and analyze mouse-tracking data

mt_add_trajectory

Add new trajectory to trajectory array.

mt_add_variables

Add new variables to trajectory array.

mt_aggregate

Aggregate mouse-tracking data per condition.

mt_aggregate_per_subject

Aggregate mouse-tracking data per condition separately for each subjec...

mt_align

Align trajectories.

mt_align_start

Align start position of trajectories.

mt_align_start_end

Align start and end position of trajectories.

mt_angles

Calculate movement angles.

mt_animate

Create gif trajectory animation.

mt_average

Average trajectories across intervals.

mt_bind

Join two trajectory arrays

mt_check_bimodality

Assess bimodality of mouse-tracking measure distributions.

mt_check_resolution

Check logging resolution by looking at timestamp differences.

mt_cluster

Cluster trajectories.

mt_cluster_k

Estimate optimal number of clusters.

mt_count

Count number of observations.

mt_derivatives

Calculate distance, velocity, and acceleration.

mt_deviations

Calculate deviations from idealized trajectory.

mt_diffmap

Creates a difference-heatmap of two trajectory heatmap images.

mt_distmat

Compute distance matrix.

mt_exclude_finish

Exclude phase without mouse movement at end of trial.

mt_exclude_initiation

Exclude initial phase without mouse movement.

mt_export_long

Export mouse-tracking data.

mt_heatmap

Plot trajectory heatmap.

mt_heatmap_ggplot

Plot trajectory heatmap using ggplot.

mt_heatmap_raw

Creates high-resolution heatmap of trajectory data.

mt_import_long

Import mouse-tracking data saved in long format.

mt_import_mousetrap

Import mouse-tracking data recorded using the mousetrap plug-ins in Op...

mt_import_wide

Import mouse-tracking data saved in wide format.

mt_length_normalize

Length normalize trajectories.

mt_map

Map trajectories to prototypes.

mt_measures

Calculate mouse-tracking measures.

mt_plot

Plot trajectory data.

mt_plot_add_rect

Add rectangles to trajectory plot.

mt_plot_per_trajectory

Create PDF with separate plots per trajectory.

mt_plot_riverbed

Plot density of mouse positions across time steps.

mt_qeffect

Create quantile-effect plot

mt_remap_symmetric

Remap mouse trajectories.

mt_resample

Resample trajectories using a constant time interval.

mt_reshape

General-purpose reshape and aggregation function for mousetrap data.

mt_sample_entropy

Calculate sample entropy.

mt_scale_trajectories

Standardize variables in mouse trajectory array.

mt_spatialize

Spatialize trajectories.

mt_standardize

Standardize mouse-tracking measures per level of other variables.

mt_subset

Filter mousetrap data.

mt_time_normalize

Time normalize trajectories.

print.mt_heatmap_raw

Generic print for class mt_heatmap_raw

read_mt

Read MouseTracker raw data.

reexports

Objects exported from other packages

scale_within

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>).

  • Maintainer: Pascal J. Kieslich
  • License: GPL-3
  • Last published: 2024-01-19