2020 ESA Annual Meeting (August 3 - 6)

COS 103 Abstract - sftraj, a R package for movement data

Matthew Boone1, Rocío Joo1, Clément Calenge2, Emiel van Loon3 and Mathieu Basille1, (1)Fort Lauderdale Research and Education Center, University of Florida, Davie, FL, (2)Direction Surveillance Évaluation Diagnostic, Office Français de la Biodiversité, Auffargis, France, (3)Institute for Biodiversity and Ecosystem Dynamics, University of Amsterdam, Amsterdam, Netherlands
Background/Question/Methods

Movement defined broadly plays a central role in fields as diverse as transportation, sport, ecology, music, medicine, and data science. Miniaturized tracking devices have become nearly ubiquitous, and resulted in an ever-increasing volume of localization data called tracking data, in the form of geographic (x,y, z) and temporal coordinates (t). In parallel, the use of R for movement studies has also increased sharply, representing more than 70 % of studies in Movement Ecology, using as many as 58 R packages (reviewed in 2018). However, the landscape in R is also very fragmented, and many packages work in isolation, not being linked to any other tracking package. This is partly due to a lack of a standard and flexible infrastructure to deal with trajectories in R, compatible with simple and commonly used spatial objects like ‘sf’, the new standard for spatial data in R.

Results/Conclusions

We introduce ‘sftraj’, a central package offering generic classes for movement data in R. The sole goal for the development of this package is to solve handling of tracking data in R, to unleash both users and developers’ energy for their own analyses and movement packages. ‘sftraj’ relies on a solid conceptual model for movement, which acknowledges the dual nature of tracking data (points) and trajectories (steps), and implements it in a natural way. Based on ‘sf’, ‘sftraj’ provides classes and basic functions to build, handle, summarize and plot movement data, and to support all stages of movement studies (pre-processing, post-processing and analysis). We will demonstrate the use of ‘sftraj’, and show how the package allows for easy creation of trajectories, as well as conversion from basic objects. ‘sftraj’ has been designed to be very accessible for both users for their own data, and developers to rely on it for their package and streamline their development process.