LeafContourEFD Analysis
This repository contains analysis code and reproducibility materials for the LeafContourEFD manuscript. The software itself is available at: leaf-contour-efd
Requirements
To reproduce the analysis, you need:
If you install renv, you can install the required R packages by executing renv::restore() (see below). All analysis code is written in R version 4.3.1 (R 2026).
Optional tools
R environment setup
In this repository, I use renv to manage R package dependencies. Please execute command below after installing renv.
# install.packages("renv") # if not installed
renv::restore()Data
Raw data are available on Dryad (DOI: in preparation).
Tracked-vs-external data policy is documented in data/README.md.
This project may require setting a local data directory via environment variable. Create a .Renviron file in the project root and add:
.Renviron
PROJECT_DATA_DIR=/path/to/your/data
For example:
- macOS:
/Users/yourname/Dropbox/project_data - Windows:
C:/Users/yourname/Dropbox/project_data
References
Bonhomme, Vincent, Sandrine Picq, Cédric Gaucherel, and Julien Claude.
2014. “Momocs : Outline Analysis
Using R.” Journal of Statistical
Software 56 (13). https://doi.org/10.18637/jss.v056.i13.
Kuhl, Frank P, and Charles R Giardina. 1982. “Elliptic Fourier
Features of a Closed Contour.” Computer Graphics and Image
Processing 18 (3): 236–58. https://doi.org/10.1016/0146-664X(82)90034-X.
R: A Language and Environment for Statistical Computing. 2026.
Vienna, Austria. https://www.R-project.org/.