Package: nutrigon 0.1.0

Juliano Morimoto

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>.

Authors:Juliano Morimoto [aut, cre]

nutrigon_0.1.0.tar.gz
nutrigon_0.1.0.zip(r-4.7-any)nutrigon_0.1.0.zip(r-4.6-any)
nutrigon_0.1.0.tar.gz(r-4.7-any)nutrigon_0.1.0.tar.gz(r-4.6-any)
nutrigon_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
nutrigon/json (API)

# Install 'nutrigon' in R:
install.packages('nutrigon', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jmor2753/nutrigon/issues

Datasets:

On CRAN:

Conda:

3.00 score 13 exports 1 dependencies

Last updated from:36eb0b9df9. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK142
source / vignettesOK226
linux-releaseOK123
windows-develOK74
windows-releaseOK107
wasm-releaseOK101

Exports:nutrigon_build_gridnutrigon_checknutrigon_coefsnutrigon_comparenutrigon_curvaturenutrigon_elongationnutrigon_equivalencenutrigon_fitnutrigon_gridnutrigon_hullnutrigon_matrixnutrigon_region_polygonnutrigon_snr

Dependencies:withr

Getting started with nutrigon: the Lee et al. (2008) example
Overview | Fitting the two surfaces | Comparing the optima | Design-matched coverage check | Small angles and alignment | Plotting the surfaces | Local curvature and surface area | References

Last update: 2026-11-07
Started: 2026-11-07

The Zanco et al. (2025) trade-off matrix: unpaired comparisons and clustering
Overview | How the matrix was built | Headline result: viability-wing size trade-off by temperature and population | Hierarchical clustering and multidimensional scaling | Surface overlay plots | Refitting viability with a quasibinomial GLM | Joint uncertainty across the matrix | Headline strip chart | References

Last update: 2026-11-07
Started: 2026-11-07