R script to reproduce analyses performed in Mouchet et al. 2025 to study the effect of temperature anomalies on viability selection on coat spot patterns in Masai giraffes using capture-mark-recapture models.