Data and R scripts supporting "Too few, too many, or just right? Optimizing sample sizes for population-level inferences in animal tracking projects"
This repository is a companion piece to the manuscript "Too few, too many, or just right? Optimizing sample sizes for population-level inferences in animal tracking projects". The main workflow presented in the manuscript provides a comprehensive approach for optimizing sample sizes in animal tracking studies, balancing sampling duration, sampling interval, and the number of sampled individuals to ensure robust, unbiased population-level inferences. By integrating robust, sampling-insensitive analytical methods and accounting for uncertainty and logistical constraints (including fix success, location error, device malfunctions, and individual variation), this workflow guides researchers in designing effective studies or evaluating existing data. The workflow has been fully implemented in the movedesign Shiny application and R package, allowing users to easily test sampling strategies and assess the reliability of space-use and movement metrics, ultimately promoting more rigorous and impactful wildlife research and conservation. Tutorial The workflow described in this manuscript is implemented in the movedesign R package, which uses Shiny to provide an easy-to-use user interface. This application allows you to test different tracking schedules and population sample sizes, considering one or two research questions (home range and/or speed estimation). To install the stable version of movedesign from CRAN: install.packages("movedesign") To launch movedesign, load the library and run the following command in your R console: library(movedesign)movedesign::run_app() Directory structure studydesign_ms/│-- cluster/ # HPC bash files and scripts│-- data/ # Data files│-- documentation/ # Tutorial and supplementary files│-- figures/ # Generated figures│-- outputs/ # Processed outputs│-- R/ # R scripts│-- renv/ # `renv` package management directory│-- renv.lock # Lock file for dependencies│-- global.R # Global settings and objects│-- studydesign_ms.Rproj # RStudio project file Scripts description The 📁 cluster folder stores scripts for HPC jobs: - cluster/create_job_sh.R: generates job submission scripts. - cluster/mean_hr.R: runs simulations for mean home range. - cluster/mean_speed.R: runs simulations for mean movement speed. - cluster/meta_resampled.R: runs meta-analyses and resampling approach. The 📁 R folder contains the other main scripts: - R/plotting_case-study.R: generates output plots for a case study. - R/running_case-study_loocv.R: runs LOOCV analyses. - R/plotting_case-study_loocv.R: generates LOOCV output plots for a case study. - R/plotting_case-study_resampled.R: generates resample plots for a case study. - R/plotting_sims_resampled.R: generates resample plots for the simulations. The 📁 R/functions subfolder contains helper functions used throughout the project. License CC BY 4.0
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2025-08-04
- DOI
- https://doi.org/10.5281/zenodo.16676569
- Primary Topic
- Wildlife Ecology and Conservation
- Type
- article
- Field-Weighted Citation Impact
- 0.00