nutrigon: Angular Separation Between Nutritional Optima

Fits response surfaces (ordinary least squares, generalized linear models with any family including quasi-families, or linear mixed-effects models) to trait data collected under the Geometric Framework for Nutrition and computes the angular separation (theta) between the nutritional optima of two traits, with percentile bootstrap confidence intervals that propagate surface-estimation uncertainty (case or stratified resampling; paired or unpaired). Provides a design-matched coverage check that simulates validation configurations on the user's own design and at the signal-to-noise ratio of the fitted surfaces, an equivalence test for alignment of optima, local Gaussian and mean curvature, and a surface-area ratio. Includes the Drosophila lifespan and fecundity dataset of Lee et al. (2008) "Lifespan and reproduction in Drosophila: new insights from nutritional geometry" <doi:10.1073/pnas.0710787105> as a worked example. The angular approach was introduced in Morimoto (2023) "Nutrigonometry I: using right-angle triangles to quantify nutritional trade-offs in performance landscapes" <doi:10.1086/723599>.

Version: 0.1.0
Depends: R (≥ 4.1)
Imports: stats, grDevices, withr
Suggests: ggplot2, ggdendro, ggrepel, patchwork, knitr, rmarkdown, testthat (≥ 3.0.0), lme4, lmerTest, pracma
Published: 2026-11-07
DOI: 10.32614/CRAN.package.nutrigon (may not be active yet)
Author: Juliano Morimoto ORCID iD [aut, cre]
Maintainer: Juliano Morimoto <juliano.morimoto at gmail.com>
BugReports: https://github.com/jmor2753/nutrigon/issues
License: MIT + file LICENSE
URL: https://github.com/jmor2753/nutrigon
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: nutrigon results

Documentation:

Reference manual: nutrigon.html , nutrigon.pdf
Vignettes: Getting started with nutrigon (source, R code)
Zanco trade-off matrix (source, R code)

Downloads:

Package source: nutrigon_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): nutrigon_0.1.0.tgz, r-oldrel (arm64): not available, r-release (x86_64): nutrigon_0.1.0.tgz, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=nutrigon to link to this page.