diff --git a/docs/404.html b/docs/404.html new file mode 100644 index 0000000..62ea22c --- /dev/null +++ b/docs/404.html @@ -0,0 +1,135 @@ + + + + + + + + +Page not found (404) • mousetrap + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ +
+
+ + +Content not found. Please use links in the navbar. + +
+ +
+ + + + +
+ + + + + + + + diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index b821ea8..67aba17 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -8,21 +8,25 @@ License • mousetrap + + - + + - - + + + @@ -30,10 +34,12 @@ + + @@ -44,6 +50,7 @@ + @@ -60,7 +67,7 @@ mousetrap - 3.1.2 + 3.1.3 @@ -76,7 +83,6 @@ News - - -
+

-mousetrap 3.0.0 2017-02-10 +mousetrap 3.0.0 2017-02-10

-
+

-Announcements

+Announcements
  • We are delighted that Dirk Wulff and Jonas Haslbeck have joined the mousetrap team! They are contributing a number of new functions, particularly for clustering and visualization.
  • The documentation of the mousetrap package can now also be found online at http://pascalkieslich.github.io/mousetrap/ @@ -261,20 +290,20 @@

  • Arguments that were already deprecated and replaced (e.g., show_progress was replaced with verbose) have been removed.
-
+

-Changes in specific functions

+Changes in specific functions
  • mt_align_start: function is now vectorized and allows for optionally aligning to mean start position across trials; default for save_as argument is set to use.
  • mt_space_normalize: function is deprecated and replaced with mt_align_start_end. It offers similar functionality but is vectorized and allows for optionally aligning to mean start/end position across trials.
  • -mt_resample: now provides option to perform partial constant interpolation. Thanks to @sbrockhaus for the suggestion (cf. #7, #9).
  • +mt_resample: now provides option to perform partial constant interpolation. Thanks to @sbrockhaus for the suggestion (cf. #7, #9).
  • mt_derivatives: now provides option to additionally return timestamp differences.
  • -mt_measures: now optionally determines the number and duration of hovers (cf. #9), improved documentation and report of time measures (cf. #6).
  • +mt_measures: now optionally determines the number and duration of hovers (cf. #9), improved documentation and report of time measures (cf. #6).
  • mt_plot: introduced facet_row and facet_col arguments for faceting.
  • @@ -336,27 +365,27 @@

-
+

-mousetrap 2.0.0 2016-10-25 +mousetrap 2.0.0 2016-10-25

General changes to all existing functions

  • Renamed show_progress argument to verbose (+ set default to FALSE).
  • -
  • Introduced dimensions argument to explicitly specify the names of the columns in the trajectory array that contain the mouse positions. In most cases, the default is c("xpos","ypos") as the x- and y-positions should be used. Note that in some functions (as specified in the documentation) the order of the labels matters, the first value will be taken as the label of the x-positions, the second as the label of the y-positions.
  • +
  • Introduced dimensions argument to explicitly specify the names of the columns in the trajectory array that contain the mouse positions. In most cases, the default is c("xpos","ypos") as the x- and y-positions should be used. Note that in some functions (as specified in the documentation) the order of the labels matters, the first value will be taken as the label of the x-positions, the second as the label of the y-positions.
  • Introduced timestamps argument to explicitly specify the dimension in the trajectory array containing the timestamps.
  • Perform merging of trial and trajectory data (e.g., in mt_subset and mt_reshape) based on the rownames. Therefore, the mt_id column in data.frames is not needed anymore - but is kept for the convenience of the user. The column is called "mt_id" in import and measures functions. mt_reshape allows the user to specify the label of the mt_id column explicitly.
  • As a consequence of the previous changes: Removal of the internal variables mt_variable_labels and mt_id.
  • Removed calculate from all mt_calculate functions: mt_calculate_measures, mt_calculate_derivatives, mt_calculate_deviations are now called mt_measures, mt_derivatives, mt_deviations.
  • Introduction of internal utils function create_results (that simplifies including the newly created trajectories or measures in the existing mousetrap data object).
  • -
  • Performance improvement of reshaping, aggregation, and visualization functions through internal changes in mt_reshape: base::merge and reshape2 functions are replaced with functions from the tidyr and dplyr packages (and custom functions). Package dependencies were adjusted accordingly. As the dplyr functions may introduce additional classes for the reshaped data (such as grouped_df and tbl_df), a new argument (convert_df) is introduced that converts the reshaped data to pure data.frames by default (thereby dropping additional classes).
  • +
  • Performance improvement of reshaping, aggregation, and visualization functions through internal changes in mt_reshape: base::merge and reshape2 functions are replaced with functions from the tidyr and dplyr packages (and custom functions). Package dependencies were adjusted accordingly. As the dplyr functions may introduce additional classes for the reshaped data (such as grouped_df and tbl_df), a new argument (convert_df) is introduced that converts the reshaped data to pure data.frames by default (thereby dropping additional classes).
-
+

-Changes in specific functions

+Changes in specific functions
  • mt_import_mousetrap, mt_import_long, mt_import_wide: Allow specifying several variables for the trial identifier in mt_id_label. A new ID variable will be created by combining the values of each variable.
  • @@ -411,9 +440,9 @@

-
+

-mousetrap 1.2.0 2016-07-09 +mousetrap 1.2.0 2016-07-09

  • New function mt_align_start adjusts trajectories so that they have the same start position (wrapper for mt_space_normalize)
  • @@ -427,9 +456,9 @@

    mt_plot_per_trajectory now receives the file name as the first argument

-
+

-mousetrap 1.1.0 2016-06-09 +mousetrap 1.1.0 2016-06-09

  • @@ -447,9 +476,9 @@

  • Minor fix in documentation of x/y reversals (thanks to Barnabas Szaszi)
-
+

-mousetrap 1.0.0 2016-03-19 +mousetrap 1.0.0 2016-03-19

+
-

Site built with pkgdown 1.3.0.

+

Site built with pkgdown 1.4.1.

+
+ + diff --git a/docs/pkgdown.css b/docs/pkgdown.css index c03fb08..9145958 100644 --- a/docs/pkgdown.css +++ b/docs/pkgdown.css @@ -21,8 +21,6 @@ body > .container { display: flex; height: 100%; flex-direction: column; - - padding-top: 60px; } body > .container .row { @@ -102,21 +100,13 @@ a.anchor { margin-top: -40px; } -/* Static header placement on mobile devices */ -@media (max-width: 767px) { - .navbar-fixed-top { - position: absolute; - } - .navbar { - padding: 0; - } -} - - /* Sidebar --------------------------*/ #sidebar { margin-top: 30px; + position: -webkit-sticky; + position: sticky; + top: 70px; } #sidebar h2 { font-size: 1.5em; @@ -133,6 +123,9 @@ a.anchor { .orcid { height: 16px; + /* margins are required by official ORCID trademark and display guidelines */ + margin-left:4px; + margin-right:4px; vertical-align: middle; } @@ -222,6 +215,19 @@ a.sourceLine:hover { visibility: visible; } +/* headroom.js ------------------------ */ + +.headroom { + will-change: transform; + transition: transform 200ms linear; +} +.headroom--pinned { + transform: translateY(0%); +} +.headroom--unpinned { + transform: translateY(-100%); +} + /* mark.js ----------------------------*/ mark { @@ -234,3 +240,17 @@ mark { .html-widget { margin-bottom: 10px; } + +/* fontawesome ------------------------ */ + +.fab { + font-family: "Font Awesome 5 Brands" !important; +} + +/* don't display links in code chunks when printing */ +/* source: https://stackoverflow.com/a/10781533 */ +@media print { + code a:link:after, code a:visited:after { + content: ""; + } +} diff --git a/docs/pkgdown.js b/docs/pkgdown.js index eb7e83d..087a762 100644 --- a/docs/pkgdown.js +++ b/docs/pkgdown.js @@ -2,14 +2,12 @@ (function($) { $(function() { - $("#sidebar") - .stick_in_parent({offset_top: 40}) - .on('sticky_kit:bottom', function(e) { - $(this).parent().css('position', 'static'); - }) - .on('sticky_kit:unbottom', function(e) { - $(this).parent().css('position', 'relative'); - }); + $('.navbar-fixed-top').headroom(); + + $('body').css('padding-top', $('.navbar').height() + 10); + $(window).resize(function(){ + $('body').css('padding-top', $('.navbar').height() + 10); + }); $('body').scrollspy({ target: '#sidebar', diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 023000e..f0f8cf0 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -1,5 +1,5 @@ -pandoc: 2.1.3 -pkgdown: 1.3.0 +pandoc: 2.7.2 +pkgdown: 1.4.1 pkgdown_sha: ~ articles: [] diff --git a/docs/reference/KH2017.html b/docs/reference/KH2017.html index 2c9b6ca..ff05fa5 100644 --- a/docs/reference/KH2017.html +++ b/docs/reference/KH2017.html @@ -8,21 +8,25 @@ Mouse-tracking dataset from Kieslich & Henninger (2017) — KH2017 • mousetrap + + - + + - - + + + @@ -30,8 +34,8 @@ - + @@ -39,6 +43,7 @@ + @@ -49,6 +54,7 @@ + @@ -65,7 +71,7 @@ mousetrap - 3.1.2 + 3.1.3
@@ -81,7 +87,6 @@ News -
+
@@ -107,43 +113,42 @@

Mouse-tracking dataset from Kieslich & Henninger (2017)

KH2017
- + +

Format

-

A mousetrap data object is a list containing at least the +

A mousetrap data object is a list containing at least the following objects:

    -
  • data: a data.frame containing the trial data (from +

  • data: a data.frame containing the trial data (from which the mouse-tracking data columns have been removed). More information about the content of the trial data in KH2017 can - be found in KH2017_raw. The rownames of data + be found in KH2017_raw. The rownames of data correspond to the trial identifier. For convenience, the trial identifier is also stored in an additional column called "mt_id".

  • -
  • trajectories: an array containing the raw +

  • trajectories: an array containing the raw mouse-tracking trajectories. The first dimension represents the different trials and the dimension names (which can be accessed using - rownames) correspond to the trial identifier (the same identifier + rownames) correspond to the trial identifier (the same identifier that is used as the rownames in data). The second dimension corresponds to the samples taken over time which are included in chronological order. The third dimension corresponds to the different mouse-tracking variables (timestamps, x-positions, y-positions) which are usually called timestamps, xpos, and ypos.

-

Some functions in this package (e.g., mt_time_normalize and + +

Some functions in this package (e.g., mt_time_normalize and mt_average) add additional trajectory arrays (e.g., tn_trajectories and av_trajectories) to the mousetrap data object. Other functions modify the existing arrays (e.g., mt_derivatives adds distance, velocity, and acceleration to an existing dataset). Finally mt_measures adds an additional data.frame with mouse-tracking measures to it.

-

Details

The raw dataset (KH2017_raw) was filtered keeping only correctly @@ -152,7 +157,6 @@

Details mt_remap_symmetric so that all trajectories end in the top-left corner and their starting point was aligned to a common value (0,0) using mt_align_start.

-

References

Kieslich, P. J., & Henninger, F. (2017). Mousetrap: An @@ -161,36 +165,36 @@

R

Dale, R., Kehoe, C., & Spivey, M. J. (2007). Graded motor responses in the time course of categorizing atypical exemplars. Memory & Cognition, 35(1), 15-28. https://doi.org/10.3758/BF03195938

-

+
-

Site built with pkgdown 1.3.0.

+

Site built with pkgdown 1.4.1.

+
+ + diff --git a/docs/reference/KH2017_raw.html b/docs/reference/KH2017_raw.html index 900c7cb..32a649f 100644 --- a/docs/reference/KH2017_raw.html +++ b/docs/reference/KH2017_raw.html @@ -8,21 +8,25 @@ Raw mouse-tracking dataset from Kieslich & Henninger (2017) — KH2017_raw • mousetrap + + - + + - - + + + @@ -30,8 +34,8 @@ - + @@ -50,6 +55,7 @@ + @@ -66,7 +72,7 @@ mousetrap - 3.1.2 + 3.1.3
@@ -82,7 +88,6 @@ News - + + + diff --git a/docs/reference/bezier-1.png b/docs/reference/bezier-1.png index 98bf6bb..88caac8 100644 Binary files a/docs/reference/bezier-1.png and b/docs/reference/bezier-1.png differ diff --git a/docs/reference/bezier.html b/docs/reference/bezier.html index 0e3dfff..b90ac61 100644 --- a/docs/reference/bezier.html +++ b/docs/reference/bezier.html @@ -8,21 +8,25 @@ Create Bezier-curves using the Bernstein approximation. — bezier • mousetrap + + - + + - - + + + @@ -30,8 +34,8 @@ - + @@ -39,6 +43,7 @@ + @@ -49,6 +54,7 @@ + @@ -65,7 +71,7 @@ mousetrap - 3.1.2 + 3.1.3 @@ -81,7 +87,6 @@ News - - - - - - - - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/reference/mt_example_raw.html b/docs/reference/mt_example_raw.html index 42d6f79..ad78f80 100644 --- a/docs/reference/mt_example_raw.html +++ b/docs/reference/mt_example_raw.html @@ -8,21 +8,25 @@ Raw mouse-tracking dataset for demonstrations of the mousetrap package — mt_example_raw • mousetrap + + - + + - - + + + @@ -30,8 +34,8 @@ - + @@ -51,6 +56,7 @@ + @@ -67,7 +73,7 @@ mousetrap - 3.1.2 + 3.1.3 @@ -83,7 +89,6 @@ News - + + + diff --git a/docs/reference/mt_exclude_initiation.html b/docs/reference/mt_exclude_initiation.html index 9df3e6c..a2337bb 100644 --- a/docs/reference/mt_exclude_initiation.html +++ b/docs/reference/mt_exclude_initiation.html @@ -8,21 +8,25 @@ Exclude initial phase without mouse movement. — mt_exclude_initiation • mousetrap + + - + + - - + + + @@ -30,8 +34,8 @@ - + @@ -39,6 +43,7 @@ + @@ -49,6 +54,7 @@ + @@ -65,7 +71,7 @@ mousetrap - 3.1.2 + 3.1.3 @@ -81,7 +87,6 @@ News - - - - - +

References

Kieslich, P. J., & Henninger, F. (2017). Mousetrap: An integrated, open-source mouse-tracking package. Behavior Research Methods, 49(5), 1652-1667. https://doi.org/10.3758/s13428-017-0900-z

-

See also

-

read_opensesame from the readbulk library +

read_opensesame from the readbulk library for reading and combining raw data files that were collected with OpenSesame.

mt_import_wide and mt_import_long for importing mouse-tracking data from other sources.

-

Examples

mt_data <- mt_import_mousetrap(mt_example_raw)
@@ -251,15 +252,10 @@

Examp

Contents

@@ -269,19 +265,23 @@

Author

+ + + diff --git a/docs/reference/mt_import_wide.html b/docs/reference/mt_import_wide.html index da00143..41df79c 100644 --- a/docs/reference/mt_import_wide.html +++ b/docs/reference/mt_import_wide.html @@ -8,21 +8,25 @@ Import mouse-tracking data saved in wide format. — mt_import_wide • mousetrap + + - + + - - + + + @@ -30,8 +34,8 @@ - + @@ -58,6 +63,7 @@ + @@ -74,7 +80,7 @@ mousetrap - 3.1.2 + 3.1.3 @@ -90,7 +96,6 @@ News - - - - - - - - - - - - - - - - + + + diff --git a/docs/reference/read_mt.html b/docs/reference/read_mt.html index 12d8453..399a299 100644 --- a/docs/reference/read_mt.html +++ b/docs/reference/read_mt.html @@ -8,21 +8,25 @@ Read MouseTracker raw data. — read_mt • mousetrap + + - + + - - + + + @@ -30,8 +34,8 @@ - + @@ -56,6 +61,7 @@ + @@ -72,7 +78,7 @@ mousetrap - 3.1.2 + 3.1.3 @@ -88,7 +94,6 @@ News - - + + + diff --git a/docs/reference/scale_within.html b/docs/reference/scale_within.html index 26b65f7..aff5100 100644 --- a/docs/reference/scale_within.html +++ b/docs/reference/scale_within.html @@ -8,21 +8,25 @@ Scale and center variables within the levels of another variable. — scale_within • mousetrap + + - + + - - + + + @@ -30,8 +34,8 @@ - + @@ -51,6 +56,7 @@ + @@ -67,7 +73,7 @@ mousetrap - 3.1.2 + 3.1.3 @@ -83,7 +89,6 @@ News -