This repository contains full documentation for the paper:
Chu, E.Y., Stull, K.E., & Sylvester, A.D. (2022). An alternative size variable for allometric investigations in subadults. American Jounral of Biological Anthropology 179(3), 471-480. DOI:10.1002/ajpa.24617.
To run the code for this paper locally, please ensure that R, and optionally RStudio, are installed on the local system.
Please cite this compendium as:
Chu, E.Y., Stull, K.E., & Sylvester, A.D. (2022). Compendium of R code and data for An alternative size variable for allometric investigations in subadults. Accessed Current Date.
All data are from the Subadult Virtual Anthropology Database (SVAD). Specifically, this project uses portions of data from the United States and South Africa, which are also directly provided in the data folder.
There are two ways to add this repository to a local system:
- If you are using a Mac operating system or have another shell terminal system (such as Git for Windows), open your terminal and enter the following commands:
cd "file/path/to/desired/repository/location" # set file location
git clone https://github.com/ElaineYChu/subadult_sv_2022 # clone the repository
cd subadult_sv_2022 # enter the new directory
ls # check that there are files in the new directory
- If you do not have or are unfamiliar with terminal command systems, you may also locate and click on the green button in this repository labeled "Code" with a downward arrow and select "Download ZIP." This will download a zipped file to your local system (probably found in your Downloads folder). Extract the embedded folder ("subadult_sv_2022-main") and relocate it to your desired folder location.
Next, rename the folder to "subadult_sv_2022" before proceeding further.
Inside the subadult_sv_2022 folder, you should find the following folders and files:
- data - A folder containing the original subsetted data from SVAD and subsequent files after data manipulation
- results - A folder housing the resulting files from all analyses
- documentation - A RMarkdown file containing all code and analyses to replicate publication results. To view a rendered .HTML version of this file, click HERE
- elaine_theme - A personalized theme for plots using
ggplot2