Intraspecific variability of social structure and linked foraging behavior in a widespread bat species
This repository investigates social foraging behavior across different phases of bats’ foraging activity. We compare our results to the foraging behavior of P. hastatus in the Trinidad population (McCracken and Bradbury, 1981; Wilkinson and Boughman, 1998) to better understand the extent of intraspecific variation in sociality within P. hastatus. This repository is part of the following publicaton:
Calderón-Capote MC, O’Mara MT, Crofoot MC, Dechmann DK (2025) Intraspecific variability of social structure and linked foraging behavior in females of a widespread bat species (Phyllostomus hastatus). PLoS ONE 20(3): e0313782. https://doi.org/10.1371/journal.pone.0313782.
In this code we renamed the initial name of the groups to avoid misunderstanding with the figure labeling of the manuscript, as follows:
- Group D= Group F1
- Group G= Group F2
- Group B= Group F3
- Group C1= Group F4
The code should be run as follows:
1.CleaningData_Bocas2022.Rmd
2.CleaningData_2016.Rmd
3.Merge_alldata.Rmd
4.Behavioral_classification.Rmd
5.Group_counts.Rmd
6.Coordination_departures_returns.Rmd
7.Path_similarity_dtw.Rmd
8.Overlap_between_groups.Rmd
9.Activity_budgets.Rmd
Note: for parts of the code a stadiamps API key is needed. The data to run the code is available at:
O’Mara, MT, Dechmann, DKN. 2023. Data from: Greater spear nosed bats commute long distances alone, rest together, but forage apart. Movebank Data Repository. (doi:https://doi.org/10.5441/001/1.282)
Calderon-Capote MC, van Toor ML, O'Mara MT, Bayer TD, Crofoot MC, Dechmann DKN. [Year]. Data from: Consistent long-distance foraging flights across years and seasons at colony level in a Neotropical bat [2021-2022]. Movebank Data Repository. https://doi.org/10.5441/001/1.321 (will be available soon)
McCracken GF, Bradbury, Jack W. Social organization and kinship in the polygynous bat Phyllostomus hastatus. Behav Ecol and Sociobiol. 1981;8(1):11–34.
Wilkinson GS, Wenrick Boughman J. Social calls coordinate foraging in greater spear-nosed bats. Anim Behav. 1998 Feb;55(2):337–50.