Natasha Gillies, Jack Thorley, Henri Weimerskirch, Stéphanie Jenouvrier, Christoph Barbraud, Karine Delord, Samantha C. Patrick
This repository contains scripts and data to recreate the main results and figures of the following manuscript:
Gillies N., Thorley J., Weimerskirch H., Jenouvrier S., Barbraud C., Delord K., Patrick SC. (2024). Plastic behaviour buffers climate variability in the wandering albatross Diomedea exulans. Ecology and Evolution, 14(12), Article e70631. https://doi.org/10.1002/ece3.70631
A short description of each script is given below.
- MS_RS_by_climate.R Contains analyses to examine the effect of climate variation on reproductive success.
- MS_foraging_by_climate_indices.R Contains analyses to examine the effect of climate variation on foraging behaviour.
- MS_kernel_map.R Calculates distribution kernels and plots them. Note this code depends on sp packages, which are not supported by recent R distributions.
- MS_plot_climate_indices.R Plots changes in climate indices over time.
- SI_distances_latitudes_by_climate_indices.R Contains analyses from Supplementary Materials.
These datasets are used in the above scripts. Note that individual IDs have been recoded and so cannot be linked to existing datasets. Please contact the authors if you would like to make sure of these, as we may be able to offer addiitonal information, data, or advice.
-
SAM_monthly.RData This contains data on the monthly Southern Annular Mode indices for each year of the study. The file SOI_monthly.RData contains the same information for the Southern Oscillation Index. Each row contains a monthly value. Data columns are as follows:
- Year: Numeric year of record
- Month: Three-letter month code of record
- SAM/SOIIndex: Numeric value of index
- month: Numeric value for month
- counter: Numeric counter for dataset
- cat: Factor indicating whether the value is negative (neg) or positive (pos)
- moving_avg: Numeric moving average for index, rolling window = 6
-
SI_WAAL_foraging_2010-2020_additionalMetrics.csv Dataset used in analyses within supplementary materials. Identical to foraging datasets below but with two additional variables:
- med_travel_dist: Numeric variable; indicates median distance travelled between searching bouts, in km, within a foraging trip
- min_lat: Numeric variable; indicates maximum latitude reached during a foraging trtip
-
WAAL_breedingSuccess_1965-2020.csv Dataset used in reproductive success analyses. Each record represents an individual breeding attempt and outcomes for that year. Data columns are as follows:
- id: Factor encoding unique ID of bird; anonymised from original
- Sex: Factor encoding whether bird is female (F) or male (M)
- StatusBaguage: Factor indicating whether age data available (P) or not (A)
- year: Factor encoding year of record
- Age: Numeric variable encoding bird age
- StateCode: Factor encoding bird's breeding state, where 0 = failed to breed, 1/2 = successfully bred, 3 = did not attempt to breed
- AFR: Numeric age at first reproductive attempt
- boldness_BLUP_mean: Numeric boldness value for individual
-
WAAL_foraging_2010-2020_F/M.csv This is the main dataset for the statistical analyses. Each row corresponds to an individual foraging trip. 'F/M' indicates female and male dataset respectively. Data columns are as follows:
- id: Factor encoding unique ID of bird; anonymised from original data
- Year: Factor encoding year of record
- Age: Numeric age of bird
- trackid: Factor encoding unique ID of foraging trip
- start_time: Datetime variable indicating start time of foraging trip
- DeploymentID: Factor encoding unique ID of each deployment (per bird and year)
- sex: Factor encoding sex of bird; female or male
- tripduration.days: Numeric duration of foraging trip duration in days
- maxdistance.km: Numeric maximum distance travelled from colony, km
- totalpathdistance.km: Numeric total distance covered in foraging trip, km
- total_landings_hmm: Numeric number of landings per day, determined from HMM
- propRest_hmm: Numeric proportion of trip spent in rest behaviour, calculated from HMM-determined behavioural categorisation
- propSearch_hmm: Numeric proportion of trip spent in search behaviour, calculated from HMM-determined behavioural categorisation
- propTravel_hmm: Numeric proportion of trip spent in travel behaviour, calculated from HMM-determined behavioural categorisation
- propARSvsTravel_hmm: Numeric proportion of trip spent in search/ARS behaviour relatively to travel behaviour, calculated from HMM-determined behavioural categorisation
- logmaxdistance.km: Numeric logged value of maximum distance travelled from colony, km
- logtotalpathdistance.km: Numeric logged value of total distance covered in foraging trip, km
- southLat: Numeric value indicating most southerly latitude reached during trip, degrees
-
northlat: Numeric value indicating most northerly latitude reached during trip, degrees
- latRange: Numeric value indicating total latitudinal range
- SAMIndex: Numeric value indicating SAM value for the month in which foraging trip took place
- SOIIndex: Numeric value indicating SAM value for the month in which foraging trip took place
- boldness: Numeric value indicating boldness of bird tracked
- attempted_breeding: Factor indicating whether bird attempted breeding (1) or not (0)
- breeding_success: Factor indicating whether bird was succcessful (1) or not (0) in breeding attempt
- prevyear: Factor indicating whether bird's breeding success in the previous year; failedrep = attempted but failed to reproduce, no attempt = did not attempt to breed, successful rep = successfully reproduced
-
WAAL_gpsLocations_1989-2020.csv Dataset providing GPS fixes for birds tracked between 1989 and 2020. Each row gives a GPS fix for a different indiviudal. Data columns are as follows:
- ring: Factor encoding unique ID of bird; anonymised from original data
- DateTime: Datetime variable giving date and time GPS fix was taken
- Sex: Factor indicating sex of bird, F (female) or M (male)
- Year: Factor giving year of GPS fix
- Longitude: Numeric value indicating longitude of fix, degrees
- Latitude: Numeric value indicating latitude of fix, degrees