{
  "_id": "6aef63f4ce821f1cf255fe76",
  "Package": "nutrigon",
  "Title": "Angular Separation Between Nutritional Optima",
  "Version": "0.1.0",
  "Authors@R": "person(\"Juliano\", \"Morimoto\", email = \"juliano.morimoto@gmail.com\", role = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0003-3561-1920\"))",
  "Description": "Fits response surfaces (ordinary least squares,\ngeneralized linear models with any family including\nquasi-families, or linear mixed-effects models) to trait data\ncollected under the Geometric Framework for Nutrition and\ncomputes the angular separation (theta) between the nutritional\noptima of two traits, with percentile bootstrap confidence\nintervals that propagate surface-estimation uncertainty (case\nor stratified resampling; paired or unpaired). Provides a\ndesign-matched coverage check that simulates validation\nconfigurations on the user's own design and at the\nsignal-to-noise ratio of the fitted surfaces, an equivalence\ntest for alignment of optima, local Gaussian and mean\ncurvature, and a surface-area ratio. Includes the Drosophila\nlifespan and fecundity dataset of Lee et al. (2008) \"Lifespan\nand reproduction in Drosophila: new insights from nutritional\ngeometry\" <doi:10.1073/pnas.0710787105> as a worked example.\nThe angular approach was introduced in Morimoto (2023)\n\"Nutrigonometry I: using right-angle triangles to quantify\nnutritional trade-offs in performance landscapes\"\n<doi:10.1086/723599>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "URL": "https://github.com/jmor2753/nutrigon",
  "BugReports": "https://github.com/jmor2753/nutrigon/issues",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-07 17:43:25 UTC",
    "User": "root"
  },
  "Author": "Juliano Morimoto [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-3561-1920>)",
  "Maintainer": "Juliano Morimoto <juliano.morimoto@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-11-07 16:57:13 UTC",
  "RemoteUrl": "https://github.com/cran/nutrigon",
  "RemoteRef": "HEAD",
  "RemoteSha": "36eb0b9df9c5ebb5ea4337021b7809299e60d36b",
  "_user": "cran",
  "_type": "src",
  "_file": "nutrigon_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/9e9dfff8607172062f0b63dcccbc765242f9ed21732c9999d6c8018a7c65bc10",
  "_filesize": 2319439,
  "_sha256": "9e9dfff8607172062f0b63dcccbc765242f9ed21732c9999d6c8018a7c65bc10",
  "_expires": "2027-02-15T17:46:26.000Z",
  "_created": "2026-11-07T17:43:25.000Z",
  "_published": "2026-11-07T17:46:28.258Z",
  "_upstream": "https://github.com/cran/nutrigon",
  "_status": "success",
  "_maintainer": {
    "name": "Juliano Morimoto",
    "email": "juliano.morimoto@gmail.com",
    "login": "jmor2753",
    "twitter": "@ju_morimoto",
    "description": "Interdisciplinary scientist",
    "uuid": 71599487,
    "orcid": "0000-0003-3561-1920"
  },
  "_jobs": [
    {
      "job": 128478623564,
      "time": 142,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13584147669"
    },
    {
      "job": 128478623585,
      "time": 123,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13584077842"
    },
    {
      "job": 128477693665,
      "time": 226,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13584610228"
    },
    {
      "job": 128478623568,
      "time": 101,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13583679506"
    },
    {
      "job": 128478623521,
      "time": 74,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13583753511"
    },
    {
      "job": 128478623633,
      "time": 107,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13584302211"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/42397393940",
  "_commit": {
    "id": "36eb0b9df9c5ebb5ea4337021b7809299e60d36b",
    "author": "Juliano Morimoto <juliano.morimoto@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1794070633
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "withr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "ggdendro",
      "role": "Suggests"
    },
    {
      "package": "ggrepel",
      "role": "Suggests"
    },
    {
      "package": "patchwork",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "lme4",
      "role": "Suggests"
    },
    {
      "package": "lmerTest",
      "role": "Suggests"
    },
    {
      "package": "pracma",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-45",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2026-11-07"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "jmor2753",
      "count": 1,
      "uuid": 71599487
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 636,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/nutrigon"
  },
  "_devurl": "https://github.com/jmor2753/nutrigon",
  "_searchresults": 0,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/nutrigon.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-11-07"
    }
  ],
  "_exports": [
    "nutrigon_build_grid",
    "nutrigon_check",
    "nutrigon_coefs",
    "nutrigon_compare",
    "nutrigon_curvature",
    "nutrigon_elongation",
    "nutrigon_equivalence",
    "nutrigon_fit",
    "nutrigon_grid",
    "nutrigon_hull",
    "nutrigon_matrix",
    "nutrigon_region_polygon",
    "nutrigon_snr"
  ],
  "_datasets": [
    {
      "name": "lee_drosophila",
      "title": "Lee et al. (2008) Drosophila lifespan and fecundity data",
      "object": "lee_drosophila",
      "class": [
        "data.frame"
      ],
      "fields": [
        "carb_eaten",
        "protein_eaten",
        "lifespan",
        "lifetimeegg",
        "dailyeggs",
        "treatment",
        "replicate",
        "Ratio",
        "Food",
        "P_fixed",
        "C_fixed"
      ],
      "rows": 973,
      "table": true,
      "tojson": true
    },
    {
      "name": "nutrigon_validation_grid",
      "title": "Pre-built generic validation grid (seed = 2025)",
      "object": "nutrigon_validation_grid",
      "class": [
        "data.frame"
      ],
      "fields": [
        "max_elongation",
        "min_edge_distance",
        "angle_diff",
        "coverage",
        "n_valid_sims"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    },
    {
      "name": "zanco_survival",
      "title": "Zanco et al. (2025) Drosophila viability data",
      "object": "zanco_survival",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Code",
        "Block",
        "Temperature",
        "Population",
        "Food",
        "Ratio",
        "Replicate",
        "Ratio_Num",
        "Prot",
        "Carb",
        "Total_Eggs",
        "Total_Adults",
        "dead_adults",
        "Prop_viable",
        "design_id"
      ],
      "rows": 1495,
      "table": true,
      "tojson": true
    },
    {
      "name": "zanco_tradeoff_matrix",
      "title": "Pre-computed pairwise angular trade-off matrix for the Zanco example",
      "object": "zanco_tradeoff_matrix",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "zanco_wingsize",
      "title": "Zanco et al. (2025) Drosophila wing size data",
      "object": "zanco_wingsize",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Food",
        "Ratio",
        "Replicate",
        "Prot",
        "Carb",
        "Population",
        "Temperature",
        "WingSize",
        "design_id"
      ],
      "rows": 2073,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "lee_drosophila",
      "title": "Lee et al. (2008) Drosophila lifespan and fecundity data",
      "topics": [
        "lee_drosophila"
      ]
    },
    {
      "page": "nutrigon_build_grid",
      "title": "Build a validation grid for the design-matched coverage check",
      "topics": [
        "nutrigon_build_grid"
      ]
    },
    {
      "page": "nutrigon_check",
      "title": "Design-matched coverage check for one result",
      "topics": [
        "nutrigon_check"
      ]
    },
    {
      "page": "nutrigon_coefs",
      "title": "Extract fitted quadratic coefficients from a 'nutrigon_fit' object",
      "topics": [
        "nutrigon_coefs"
      ]
    },
    {
      "page": "nutrigon_compare",
      "title": "Compare two nutritional optima and bootstrap the angular separation",
      "topics": [
        "nutrigon_compare"
      ]
    },
    {
      "page": "nutrigon_curvature",
      "title": "Local Gaussian and mean curvature, and surface-area ratio, of a fitted surface",
      "topics": [
        "nutrigon_curvature"
      ]
    },
    {
      "page": "nutrigon_elongation",
      "title": "Curvature elongation ratio of a fitted quadratic surface",
      "topics": [
        "nutrigon_elongation"
      ]
    },
    {
      "page": "nutrigon_equivalence",
      "title": "Equivalence test for alignment of two nutritional optima",
      "topics": [
        "nutrigon_equivalence"
      ]
    },
    {
      "page": "nutrigon_fit",
      "title": "Fit a quadratic response surface and locate the nutritional optimum",
      "topics": [
        "nutrigon_fit"
      ]
    },
    {
      "page": "nutrigon_grid",
      "title": "Build a prediction grid inside the design hull for surface plotting",
      "topics": [
        "nutrigon_grid"
      ]
    },
    {
      "page": "nutrigon_hull",
      "title": "Design hull as a closed polygon for plotting",
      "topics": [
        "nutrigon_hull"
      ]
    },
    {
      "page": "nutrigon_matrix",
      "title": "Angular trade-off matrix for N surfaces, with joint bootstrap uncertainty",
      "topics": [
        "nutrigon_matrix"
      ]
    },
    {
      "page": "nutrigon_region_polygon",
      "title": "Peak (or valley) region as a convex hull polygon for plotting",
      "topics": [
        "nutrigon_region_polygon"
      ]
    },
    {
      "page": "nutrigon_snr",
      "title": "Signal-to-noise ratio of a fitted surface",
      "topics": [
        "nutrigon_snr"
      ]
    },
    {
      "page": "nutrigon_validation_grid",
      "title": "Pre-built generic validation grid (seed = 2025)",
      "topics": [
        "nutrigon_validation_grid"
      ]
    },
    {
      "page": "zanco_survival",
      "title": "Zanco et al. (2025) Drosophila viability data",
      "topics": [
        "zanco_survival"
      ]
    },
    {
      "page": "zanco_tradeoff_matrix",
      "title": "Pre-computed pairwise angular trade-off matrix for the Zanco example",
      "topics": [
        "zanco_tradeoff_matrix"
      ]
    },
    {
      "page": "zanco_wingsize",
      "title": "Zanco et al. (2025) Drosophila wing size data",
      "topics": [
        "zanco_wingsize"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cran/nutrigon/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/cran/nutrigon/raw/HEAD/README.md",
  "_rundeps": [
    "withr"
  ],
  "_vignettes": [
    {
      "source": "getting-started.Rmd",
      "filename": "getting-started.html",
      "title": "Getting started with nutrigon: the Lee et al. (2008) example",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2026-11-07 16:57:13",
      "modified": "2026-11-07 16:57:13",
      "commits": 1
    },
    {
      "source": "zanco-tradeoff-matrix.Rmd",
      "filename": "zanco-tradeoff-matrix.html",
      "title": "The Zanco et al. (2025) trade-off matrix: unpaired comparisons and clustering",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2026-11-07 16:57:13",
      "modified": "2026-11-07 16:57:13",
      "commits": 1
    }
  ],
  "_score": 3,
  "_indexed": true,
  "_nocasepkg": "nutrigon",
  "_universes": [
    "cran",
    "jmor2753"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-11-07T17:45:32.000Z",
      "distro": "resolute",
      "commit": "36eb0b9df9c5ebb5ea4337021b7809299e60d36b",
      "fileid": "https://r2.ropensci.org/88b1641ecc71ed122ec70acbca37b4590fb2d22447de96aa1bcb1f18ce73973b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42397393940"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-11-07T17:45:24.000Z",
      "distro": "resolute",
      "commit": "36eb0b9df9c5ebb5ea4337021b7809299e60d36b",
      "fileid": "https://r2.ropensci.org/09046cf3b2f8bfd6df7a2c8e1d217276e351fbbfba1672fc7788f0adf814ea3a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42397393940"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-11-07T17:45:21.000Z",
      "commit": "36eb0b9df9c5ebb5ea4337021b7809299e60d36b",
      "fileid": "https://r2.ropensci.org/f2fe413437f39db60040208414988feb1ce968712abab4e0105bd60e75e99f25",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42397393940"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-11-07T17:44:26.000Z",
      "commit": "36eb0b9df9c5ebb5ea4337021b7809299e60d36b",
      "fileid": "https://r2.ropensci.org/925dd5562909fd32283577c9777137d06d5107442c29409878562f81cb0d3392",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42397393940"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-11-07T17:44:44.000Z",
      "commit": "36eb0b9df9c5ebb5ea4337021b7809299e60d36b",
      "fileid": "https://r2.ropensci.org/018ffadc5ee3dbb8cf0cf2d477699c29e84017f4511cf2bd5e5ffe9d19b26d4a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42397393940"
    }
  ]
}