Skip to content

Commit

Permalink
Update function references & online documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalKieslich committed Jan 3, 2022
1 parent 18a92f9 commit b861f90
Show file tree
Hide file tree
Showing 15 changed files with 104 additions and 57 deletions.
15 changes: 10 additions & 5 deletions R/cluster.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#' computed by \link{mt_distmat}.
#'
#' Mouse trajectories often occur in distinct, qualitative types (see Wulff et
#' al., 2019; Wulff et al., 2021). Common trajectory types are linear
#' al., 2019; Wulff et al., 2022). Common trajectory types are linear
#' trajectories, mildly and strongly curved trajctories, and single and multiple
#' change-of-mind trials (see also \link{mt_map}). \code{mt_cluster} can tease
#' these types apart.
Expand All @@ -32,7 +32,7 @@
#' top-left corner of the coordinate system (\link{mt_remap_symmetric} or
#' \link{mt_align} can be used to achieve this). Furthermore, it is recommended
#' to use length normalized trajectories (see \link{mt_length_normalize}; Wulff
#' et al., 2019).
#' et al., 2019, Wulff et al., 2021).
#'
#' @inheritParams mt_time_normalize
#' @param save_as a character string specifying where the resulting data should
Expand Down Expand Up @@ -86,10 +86,15 @@
#' @references Wulff, D. U., Haslbeck, J. M. B., Kieslich, P. J., Henninger, F.,
#' & Schulte-Mecklenbeck, M. (2019). Mouse-tracking: Detecting types in
#' movement trajectories. In M. Schulte-Mecklenbeck, A. Kühberger, & J. G.
#' Johnson (Eds.), \emph{A Handbook of Process Tracing Methods} (pp. 131-145). New York, NY:
#' Routledge.
#' Johnson (Eds.), \emph{A Handbook of Process Tracing Methods} (pp. 131-145).
#' New York, NY: Routledge.
#'
#' Wulff, D. U., Kieslich, P. J., Henninger, F., Haslbeck, J. M. B., &
#' Schulte-Mecklenbeck, M. (2021). \emph{Movement tracking of cognitive
#' processes: A tutorial using mousetrap.} PsyArXiv.
#' \doi{10.31234/osf.io/v685r}
#'
#' Wulff, D. U., Haslbeck, J. M. B., & Schulte-Mecklenbeck, M. (2021).
#' Wulff, D. U., Haslbeck, J. M. B., & Schulte-Mecklenbeck, M. (2022).
#' \emph{Measuring the (dis-)continuous mind: What movement trajectories
#' reveal about cognition}. Manuscript in preparation.
#'
Expand Down
21 changes: 13 additions & 8 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -215,18 +215,23 @@
#' trajectory, the discrete change-of-mind trajectory, and the double discrete
#' change-of-mind trajectory.
#'
#' Mouse- and hand-trajectories often occur in types (Wulff, Haslbeck, &
#' Schulte-Mecklenbeck, 2017). In such cases, movement trajectory data should be
#' analyzed in terms of discrete type assignments. To this end \link{mt_map} can
#' be used to map mouse- or hand-trajectory to the closest of several predefined
#' prototypes. \code{mt_prototypes} provides a core set of prototypes that has
#' been shown to represent well a large fraction of empirical movement
#' trajectories.
#' Mouse- and hand-trajectories often occur in types. In such cases, movement
#' trajectory data should be analyzed in terms of discrete type assignments
#' (Wulff et al., 2021). To this end \link{mt_map} can be used to map mouse- or
#' hand-trajectory to the closest of several predefined prototypes.
#' \code{mt_prototypes} provides a core set of prototypes that has been shown to
#' represent well a large fraction of empirical movement trajectories (Wulff et
#' al., 2022).
#'
#' To tailor the set of prototypes to a given study, \code{mt_prototypes} can be
#' extended using \link{mt_add_trajectory}.
#'
#' @references Wulff, D. U., Haslbeck, J. M. B., Schulte-Mecklenbeck, M. (2018).
#' @references Wulff, D. U., Kieslich, P. J., Henninger, F., Haslbeck, J. M.
#' B., & Schulte-Mecklenbeck, M. (2021). \emph{Movement tracking of cognitive
#' processes: A tutorial using mousetrap.} PsyArXiv.
#' \doi{10.31234/osf.io/v685r}
#'
#' Wulff, D. U., Haslbeck, J. M. B., Schulte-Mecklenbeck, M. (2022).
#' \emph{Measuring the (dis-)continuous mind: What movement trajectories
#' reveal about cognition}. Manuscript in preparation.
#'
Expand Down
15 changes: 10 additions & 5 deletions R/map.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' prototype that produced the smallest distance.
#'
#' Mouse trajectories often occur in distinct, qualitative types (see Wulff et
#' al., 2019; Wulff et al., 2021). Common trajectory types are linear
#' al., 2019; Wulff et al., 2022). Common trajectory types are linear
#' trajectories, mildly and strongly curved trajectories, and single and
#' multiple change-of-mind trials. \code{mt_map} allows to map trajectories to a
#' predefined set of trajectory types.
Expand All @@ -22,7 +22,7 @@
#' trajectories end in the top-left corner of the coordinate system
#' (\link{mt_remap_symmetric} or \link{mt_align} can be used to achieve this).
#' Furthermore, it is recommended to use length normalized trajectories (see
#' \link{mt_length_normalize}; Wulff et al., 2019).
#' \link{mt_length_normalize}; Wulff et al., 2019, Wulff et al., 2021).
#'
#' @inheritParams mt_distmat
#' @param prototypes a trajectory array containing the prototypes the
Expand Down Expand Up @@ -51,10 +51,15 @@
#' @references Wulff, D. U., Haslbeck, J. M. B., Kieslich, P. J., Henninger, F.,
#' & Schulte-Mecklenbeck, M. (2019). Mouse-tracking: Detecting types in
#' movement trajectories. In M. Schulte-Mecklenbeck, A. Kühberger, & J. G.
#' Johnson (Eds.), \emph{A Handbook of Process Tracing Methods} (pp. 131-145). New York, NY:
#' Routledge.
#' Johnson (Eds.), \emph{A Handbook of Process Tracing Methods} (pp. 131-145).
#' New York, NY: Routledge.
#'
#' Wulff, D. U., Haslbeck, J. M. B., & Schulte-Mecklenbeck, M. (2021).
#' Wulff, D. U., Kieslich, P. J., Henninger, F., Haslbeck, J. M. B., &
#' Schulte-Mecklenbeck, M. (2021). \emph{Movement tracking of cognitive
#' processes: A tutorial using mousetrap.} PsyArXiv.
#' \doi{10.31234/osf.io/v685r}
#'
#' Wulff, D. U., Haslbeck, J. M. B., & Schulte-Mecklenbeck, M. (2022).
#' \emph{Measuring the (dis-)continuous mind: What movement trajectories
#' reveal about cognition}. Manuscript in preparation.
#'
Expand Down
2 changes: 2 additions & 0 deletions R/spatialize.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#' Dirk U. Wulff
#'
#' Jonas M. B. Haslbeck
#'
#' Pascal J. Kieslich
#'
#' @export
mt_length_normalize <- function(
Expand Down
2 changes: 1 addition & 1 deletion docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ pandoc: 2.14.0.3
pkgdown: 2.0.1
pkgdown_sha: ~
articles: {}
last_built: 2021-12-29T14:44Z
last_built: 2022-01-03T16:43Z

2 changes: 1 addition & 1 deletion docs/reference/mt_check_bimodality.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions docs/reference/mt_cluster.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/mt_length_normalize.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions docs/reference/mt_map.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 12 additions & 8 deletions docs/reference/mt_prototypes.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions man/mt_cluster.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/mt_length_normalize.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions man/mt_map.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 13 additions & 8 deletions man/mt_prototypes.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b861f90

Please sign in to comment.