1
0
Fork 0
mirror of https://codeberg.org/g-rppl/movetrack.git synced 2026-05-25 00:10:48 +00:00
Model flight paths from radio-telemetry data using a hidden Markov model. https://g-rppl.codeberg.page/movetrack
Find a file
2026-04-04 10:48:08 +02:00
data tackle rcmdcheck notes 2024-06-03 11:32:55 +02:00
inst Bump version to 1.1.2 2026-04-03 16:53:41 +02:00
man Update figures 2025-11-27 12:15:20 +01:00
pkgdown/assets Disable pkgdowns llm-docs "feature" - use human.json instead 2026-04-02 11:37:31 +02:00
R Fix rounding bug 2025-11-25 15:42:42 +01:00
tests Update test tolerance 2026-04-04 10:48:08 +02:00
vignettes Use em dashes again 2026-03-13 09:52:19 +01:00
.gitignore add _publish.R 2025-04-09 09:48:59 +02:00
.Rbuildignore move to codeberg 2025-03-17 08:29:46 +01:00
_pkgdown.yml Disable pkgdowns llm-docs "feature" - use human.json instead 2026-04-02 11:37:31 +02:00
DESCRIPTION Bump version to 1.1.2 2026-04-03 16:53:41 +02:00
LICENSE update license 2025-03-17 08:29:46 +01:00
LICENSE.md Update email 2025-11-27 11:44:35 +01:00
NAMESPACE enable use of omnidirectional antennas 2025-09-30 11:07:38 +02:00
NEWS.md Update README and NEWS 2026-04-03 16:35:27 +02:00
README.md Update README and NEWS 2026-04-03 16:35:27 +02:00

movetrack

codecov Universe License: MIT

movetrack is an R package that provides simple functionality to estimate individual flight tracks from radio-telemetry data such as Motus using a hidden Markov model written in Stan.

Installation

You can install movetrack from the R Universe with

install.packages("movetrack",
  repos = c("https://g-rppl.r-universe.dev", getOption("repos"))
)

To instead install the latest development version of the package from Codeberg use

devtools::install_git("https://codeberg.org/g-rppl/movetrack.git", ref = "dev")

During the initial installation, make sure that the C++ toolchain required for CmdStan is set up properly. You can find more information here.

library(cmdstanr)
check_cmdstan_toolchain(fix = TRUE)

If not, go to https://mc-stan.org/docs/cmdstan-guide/cmdstan-installation.html#cpp-toolchain and follow the instructions for your platform. Once your toolchain is configured correctly, CmdStan can be installed:

install_cmdstan(cores = 2)

Details

Automated radio-telemetry provides a scalable, lightweight tracking solution for mobile animals, but existing localisation methods rely solely on receiver locations or offer only small-scale, site-specific estimates, limiting their ability to reconstruct full flight paths. movetrack estimates full flight paths by combining coarse geometric position estimates---based on antenna bearing and signal strength---with an hidden Markov model that accounts for measurement error, temporal gaps, and movement dynamics. This two-step process is implemented in the main function track():

  1. It first calculates point estimates based on antenna bearing and signal strength as described in Baldwin et al. (2018) (see vignette("raw_positions")).
  2. The results are then passed to Stan and individual flights paths are estimated using a hidden Markov model (see vignette("hmm")).

You can find a quickstart example here: vignette("movetrack").

Example tracks reconstructed using different methods

When using movetrack, please cite the following publication:

Rüppel, G., Karwinkel, T., Brust, V., Schmaljohann, H. (2026). movetrack: An R package to model flight paths from radio-telemetry networks. Methods in Ecology and Evolution, 17(4), 1069--1081. doi: 10.1111/2041-210x.70273

As movetrack is a high-level interface to Stan, please additionally cite Stan (see https://mc-stan.org/users/citations).

A note about human.json

Instead of using pkgdown's default of adding LLM-readable files to the documentation, movetrack adopts the human.json protocol.

human.json is a lightweight protocol for humans to assert authorship of their site content and vouch for the humanity of others.

References

Auger-Méthé, M., Newman, K., Cole, D., Empacher, F., Gryba, R., King, A. A., ... & Thomas, L. (2021). A guide to statespace modeling of ecological time series. Ecological Monographs, 91(4), e01470. doi: 10.1002/ecm.1470

Baldwin, J. W., Leap, K., Finn, J. T., & Smetzer, J. R. (2018). Bayesian state-space models reveal unobserved off-shore nocturnal migration from Motus data. Ecological Modelling, 386, 38--46. doi: 10.1016/j.ecolmodel.2018.08.006

Jonsen, I. D., Flemming, J. M., & Myers, R. A. (2005). Robust statespace modeling of animal movement data. Ecology, 86(11), 2874--2880. doi: 10.1890/04-1852