Learn R Programming

⚠️There's a newer version (3.2.3) of this package.Take me there.

mousetrap

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 overview of the functions in this package is given in the package description, which can be accessed with package?mousetrap once the package has been installed.

General Information

The mousetrap package is developed by Pascal Kieslich and Felix Henninger. It is published under the GNU General Public License (version 3). Please see the NEWS file for most recent changes.

Installation

  • The current stable version is available on CRAN and can be installed via install.packages("mousetrap").
  • To install the latest development version from GitHub, you need the devtools package . The development version can be installed via devtools::install_github("pascalkieslich/mousetrap@master").

Acknowledgments

We thank Johanna Hepp for helpful comments on the documentation of this package and Monika Wiegelmann for testing a development version.

Copy Link

Version

Install

install.packages('mousetrap')

Monthly Downloads

885

Version

1.2.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Pascal J Kieslich

Last Published

July 9th, 2016

Functions in mousetrap (1.2.0)

mt_check_bimodality

Assess bimodality of mouse-tracking measure distributions.
mt_calculate_deviations

Calculate deviations from idealized trajectory.
bimodality_coefficient

Calculate bimodality coefficient.
mt_calculate_derivatives

Calculate distance, velocity, and acceleration.
mt_aggregate_per_subject

Aggregate mouse-tracking data per condition separately for each subject.
mousetrap

mousetrap: Process and Analyze Mouse-Tracking Data
mt_average

Average trajectories across intervals.
mt_align_start

Align start position of trajectories.
mt_aggregate

Aggregate mouse-tracking data per condition.
mt_calculate_measures

Calculate mouse-tracking measures.
mt_import_mousetrap

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

Check logging resolution by looking at timestamp differences.
mt_id

Trial identifier for mousetrap data.
mt_example

A mousetrap data object.
mt_example_raw

Raw mouse-tracking dataset for demonstrations of the mousetrap package
mt_exclude_initiation

Exclude initial phase without mouse movement.
mt_movement_angle

Calculate initial movement angle.
mt_import_long

Import mouse-tracking data saved in long format.
mt_import_wide

Import mouse-tracking data saved in wide format.
mt_plot_add_rect

Add rectangles to trajectory plot.
mt_plot

Plot trajectory data.
mt_sample_entropy

Calculate sample entropy.
mt_plot_riverbed

Plot density of mouse positions across time steps.
mt_remap_symmetric

Remap mouse trajectories.
mt_reshape

General-purpose reshape and aggregation function for mousetrap data.
mt_space_normalize

Space normalize trajectories.
mt_standardize

Standardize mouse-tracking measures per level of other variables.
mt_subset

Filter mousetrap data.
mt_resample

Resample trajectories using a constant time interval.
mt_plot_per_trajectory

Create pdf with separate plots per trajectory.
mt_time_normalize

Time normalize trajectories.
scale_within

Scale and center variables within the levels of another variable.
read_mousetracker

Read data exported from MouseTracker.
mt_variable_labels

Labels for mousetrap variables.