Relation between sleeping site height of Black Capuchins (Sapajus nigritus) and Moon illumination
This repository explores how lunar illumination and other environmental variables (e.g. precipitation, canopy structure) influence sleeping site selection in wild Black Capuchin monkeys. The analysis combines GPS data, lunar ephemerides, and remote sensing to investigate how primates may adaptively respond to night-time light conditions.
suncalc
), canopy height models, and precipitation data to evaluate behavioral patterns.Calculates effective moonlight index:
Combines moon phase and altitude to estimate true perceived nocturnal illumination.
Integrates canopy structure data from remote sensing (Lidar-based CHM).
Links sleeping site use (used vs. available points) to moonlight, canopy height, and precipitation.
Produces interactive plots and static figures via R and ggplot2
.
The full report is available here.
The full report is available here.
The full analysis and details are available here.
It includes all figures, code, and ecological interpretations.
tidyverse
– data wrangling and plottingsuncalc
– moon position and phaseterra
– raster data handlinggeosphere
– spatial distance and geometryviridis
– color scales for accessibilitymoon_sleeping_sites/ │ ├── data/ # Raw data (not committed) ├── scripts/ # R scripts used in the analysis ├── output/ # Plots and figures ├── moon_sleeping.Rmd # Main analysis notebook ├── moon_sleeping.html # Rendered HTML report (published) └── README.md # You are here