Process and Analyze Mouse-Tracking Data
Overview
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).
Internal changes
- Added link to online documentation in package description
- Improved efficiency of heatmap examples
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 58 (2 internal)includes a package overview page
- Examples that run
- 82%41 run in a plain check · 8 never run · 1 hold no code
- Exported functions with examples
- 98%
- Documented parameters
- 99%
- Return-value docs
- 84%
- Help pages citing references
- 38%
Downloads
Repository
- PRs merged (all time)
- 75%
- Median days to close, 50 most recently updated closed issues
- 5
- Median days to close, 50 most recently updated closed PRs
- 12
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
6 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/pascalkieslich/mousetrap on 2026-10-22.
Dependencies
Installing mousetrap adds 41 packages (24 with compiled code, 43 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, fields 3.9 MB.
Code & Tests
Datasets
People & History
Show 3 peopleHide 3 people
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- unarchivedReturned to CRAN2024-01-19
- 3.2.3Latest
- archivedRemoved from CRAN2024-01-10issues were not corrected in time
- 3.2.22023-10-23 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 3.2.1
- 3.2.0
- RR 4.1.0 released · 2021-05-18
- 3.1.52020-08-27 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 3.1.42019-12-05 · diff ↗
- 3.1.32019-10-04 · diff ↗
Show 13 earlier eventsHide 13 earlier events
- RR 3.6.0 released · 2019-04-26
- 3.1.22019-02-02 · diff ↗
- 3.1.12018-07-06 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 3.1.02017-05-20 · diff ↗ ·
added 7 exports
bezier, mt_animate, mt_diffmap, mt_heatmap, mt_heatmap_ggplot, mt_heatmap_raw, mt_scale_trajectories - RR 3.4.0 released · 2017-04-21
- 3.0.02017-02-11 · diff ↗ ·
removed 5 exports
mt_calculate_derivatives, mt_calculate_deviations, mt_calculate_measures, mt_movement_angle, read_mousetrackeradded 12 exports
mt_add_trajectory, mt_align, mt_align_start_end, mt_angles, mt_bind, mt_cluster, mt_cluster_k, mt_count, mt_distmat, mt_map, mt_spatialize, read_mt - 2.0.02016-10-25 · diff ↗ ·
removed 2 exports
mt_id, mt_variable_labelsadded 6 exports
mt_add_variables, mt_derivatives, mt_deviations, mt_export_long, mt_export_wide, mt_measures - 1.2.0
- 1.1.02016-06-09 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 1.0.02016-03-19
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2016-03-19
- Total releases
- 15 / 10 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.1.0
- Bundled data
- 1.0 MB / 5 files
- Download size
- 1.2 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("mousetrap")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.31234/osf.io/v685r.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.