This repository contains all data and code necessary to generate manuscript results and figures. Execute the run.r script in the main directory.
Data (in the Data/ directory):
- data_raw_2023-12-17.csv (raw behavioral data)
- data_banding.csv (banding identification data)
- dictionary_behaviors.r (behavioral element dictionaries)
Analysis scripts (in the Scripts/ directory):
- 0_logistics.r (set runtime variables, file paths, load packages)
- 1_parse_data.r (prepare dataset from individual behavioral element records)
- 2_analyze.r (calculate display characteristics and write analysis report file)
- 3_plot.r (generate all figures and tables)
Scripts are written for R v4.3.1. See scripts and manuscript for packages and software citations.
Required R packages can be installed in R with:
install.packages(c("tidyverse",
"lubridate",
"acss",
"brotli",
"stringdist",
"patchwork"))