{"id":13949179,"url":"https://github.com/ncss-tech/aqp","last_synced_at":"2025-04-13T00:48:47.374Z","repository":{"id":38133574,"uuid":"54595349","full_name":"ncss-tech/aqp","owner":"ncss-tech","description":"Algorithms for Quantitative Pedology","archived":false,"fork":false,"pushed_at":"2025-02-15T21:16:04.000Z","size":381799,"stargazers_count":55,"open_issues_count":31,"forks_count":13,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-11T18:15:47.993Z","etag":null,"topics":["digital-soil-mapping","ncss-tech","nrcs","pedology","pedometrics","soil","soil-survey","usda"],"latest_commit_sha":null,"homepage":"http://ncss-tech.github.io/aqp/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ncss-tech.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-03-23T21:48:50.000Z","updated_at":"2025-02-15T21:11:00.000Z","dependencies_parsed_at":"2024-01-02T22:23:40.250Z","dependency_job_id":"b2037510-f7e8-43a1-bb0b-b51b651f224a","html_url":"https://github.com/ncss-tech/aqp","commit_stats":{"total_commits":3488,"total_committers":13,"mean_commits":268.3076923076923,"dds":"0.32396788990825687","last_synced_commit":"9a3624015f33d7cc9dd144b46a5d1906807602b4"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncss-tech%2Faqp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncss-tech%2Faqp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncss-tech%2Faqp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncss-tech%2Faqp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncss-tech","download_url":"https://codeload.github.com/ncss-tech/aqp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248533702,"owners_count":21120144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["digital-soil-mapping","ncss-tech","nrcs","pedology","pedometrics","soil","soil-survey","usda"],"created_at":"2024-08-08T05:01:40.015Z","updated_at":"2025-04-13T00:48:47.352Z","avatar_url":"https://github.com/ncss-tech.png","language":"R","funding_links":[],"categories":["Access and Monitoring of Resources","Natural Resources"],"sub_categories":["Soil","Soil and Land"],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.align = 'center',\n  fig.path = \"man/figures/README-\",\n  dev = \"png\",\n  retina = 1.5,\n  message = FALSE,\n  warning = FALSE,\n  tidy = FALSE\n)\n```\n\n[![CRAN version](https://www.r-pkg.org/badges/version/aqp)](https://CRAN.R-project.org/package=aqp)\n[![CRAN status](https://badges.cranchecks.info/worst/aqp.svg)](https://cran.r-project.org/web/checks/check_results_aqp.html)\n[![Development Version](https://ncss-tech.r-universe.dev/badges/aqp)](https://ncss-tech.r-universe.dev/)\n[![Monthly CRAN Downloads](https://cranlogs.r-pkg.org/badges/aqp)](https://cran.r-project.org/package=aqp)\n![CRAN/METACRAN](https://img.shields.io/cran/l/aqp)\n[![aqp Manual](https://img.shields.io/badge/docs-HTML-informational)](https://ncss-tech.github.io/aqp/)\n\n# Algorithms for Quantitative Pedology (aqp) package for R\n\n\u003c!-- aqp hexsticker! --\u003e\n\u003ca href=\"https://raw.githubusercontent.com/ncss-tech/aqp/master/misc/hexstickers/aqp_sticker_v2.png\"\u003e\n\u003cimg src = \"https://raw.githubusercontent.com/ncss-tech/aqp/master/misc/hexstickers/aqp_sticker_v2.png\" alt = \"aqp hexsticker (Paxton, Montauk, Woodbridge, Ridgebury, Whitman, Catden soil series dendogram)\" title = \"aqp hexsticker (Paxton, Montauk, Woodbridge, Ridgebury, Whitman, Catden soil series dendogram)\" width = \"45%\" height = \"45%\" hspace=\"15\" vspace=\"15\" align=\"right\"/\u003e\u003c/a\u003e\n\nThe Algorithms for Quantitative Pedology (AQP) project was started in 2009 to organize a loosely-related set of concepts and source code on the topic of soil profile visualization, aggregation, and classification into this package (aqp). Over the past 8 years, the project has grown into a suite of related R packages that enhance and simplify the quantitative analysis of soil profile data. Central to the AQP project is a new vocabulary of specialized functions and data structures that can accommodate the inherent complexity of soil profile information; freeing the scientist to focus on ideas rather than boilerplate data processing tasks \u003cdoi:10.1016/j.cageo.2012.10.020\u003e. These functions and data structures have been extensively tested and documented, applied to projects involving hundreds of thousands of soil profiles, and deeply integrated into widely used tools such as SoilWeb \u003chttps://casoilresource.lawr.ucdavis.edu/soilweb-apps\u003e. Components of the AQP project (aqp, soilDB, sharpshootR, soilReports packages) serve an important role in routine data analysis within the USDA-NRCS Soil Science Division. The AQP suite of R packages offer a convenient platform for bridging the gap between pedometric theory and practice.\n\n## Installation\n\nGet the stable version from CRAN:\n\n```r\ninstall.packages('aqp')\n```\n\nGet the development version from Github, after installing the CRAN version + dependencies:\n\n```r\nremotes::install_github(\"ncss-tech/aqp\", dependencies = FALSE, upgrade = FALSE, build = FALSE)\n```\n\nInstall suggested packages:\n```{r eval=FALSE}\np \u003c- c(\"soilDB\", \"latticeExtra\", \"tactile\", \"compositions\", \n\"sharpshootR\", \"markovchain\", \"xtable\", \"testthat\", \"Gmedian\", \n\"Hmisc\", \"tibble\", \"RColorBrewer\", \"scales\", \"mpspline2\", \"soiltexture\", \"knitr\", \"rmarkdown\", \"mvtnorm\")\n\ninstall.packages(p)\n```\n\n## Website\n[http://ncss-tech.github.io/AQP/](http://ncss-tech.github.io/AQP/)\n\n## Examples\n\n```{r fig.width=9, fig.height=6, fig.alt='testing 1 2', fig.caption='testing 1 2'}\nlibrary(aqp)\n\n# example data from three official series descriptions\ndata(\"osd\")\n\n# simulate 2 copies of each\n# using horizon boundary distinctness offsets\nset.seed(10101)\nx \u003c- perturb(osd, n = 2, boundary.attr = 'hzd', min.thickness = 5)\n\n# tighter margins\npar(mar = c(0, 0, 1, 0))\n\n# adjust default style\n# depict truncation at 175cm with ragged bottom\nplotSPC(\n  x, \n  name.style = 'center-center', \n  cex.names = 1,\n  width = 0.33,\n  cex.id = 0.9,\n  hz.distinctness.offset = 'hzd', \n  max.depth = 175, \n  depth.axis = FALSE, \n  hz.depths = TRUE\n)\n```\n\n## Citation\n```{r}\ncitation(\"aqp\")\n```\n\n## Related Papers and Book Chapters\n  * Beaudette D.E., P. Roudier, and J. Skovlin. 2016. Probabilistic representation of genetic soil horizons. In Book Digital soil morphometrics. Springer.\n  * Maynard, J.J., S.W. Salley, D.E. Beaudette, and J.E. Herrick. 2020. Numerical soil classification supports soil identification by citizen scientists using limited, simple soil observations. Soil Science Society of  America Journal 84:1675-1692.\n  * Beaudette, D. E., J. Skovlin, A. G. Brown, P. Roudier, and S. M. Roecker. \"Algorithms for Quantitative Pedology.\" In Geopedology, edited by Joseph Alfred Zinck, Graciela Metternicht, Héctor Francisco del Valle, and Marcos Angelini, 201–22. Cham: Springer International Publishing, 2023. https://doi.org/10.1007/978-3-031-20667-2_11.\n\n## Related Packages\n  * [soilDB](https://github.com/ncss-tech/soilDB)\n  * [sharpshootR](https://github.com/ncss-tech/sharpshootR)\n\n## Vignettes \n  * [Introduction to SoilProfileCollection Objects](https://ncss-tech.github.io/aqp/articles/Introduction-to-SoilProfileCollection-Objects.html)\n  * [Numerical Classification of Soil Profiles](https://ncss-tech.github.io/aqp/articles/NCSP.html)\n  * [Overlapping Annotation](https://ncss-tech.github.io/aqp/articles/label-placement.html)\n  * [What is new in aqp 2.x?](https://ncss-tech.github.io/aqp/articles/new-in-aqp-2.html)\n\n## Tutorials\n  * [Soil Profile Sketches](https://ncss-tech.github.io/AQP/aqp/sketches.html)\n  * [Assigning Generalized Horizon Labels](https://ncss-tech.github.io/AQP/aqp/gen-hz-assignment.html)\n  * [Visualization of Horizon Boundaries](https://ncss-tech.github.io/AQP/aqp/hz-boundaries.html)\n  * [Mixing Munsell Colors in {aqp}](https://ncss-tech.github.io/AQP/aqp/mix-colors.html)\n  * [Theoretical Water Retention Curves](https://ncss-tech.github.io/AQP/aqp/water-retention-curves.html)\n  * [Soil Texture Visualization Ideas](https://ncss-tech.github.io/AQP/aqp/soiltexture-vizualization-ideas.html)\n\n## Related Presentations / Posters\n  * [Numerical Classification of Soil Profiles (2023 NCSS Meetings)](https://ncss-tech.github.io/AQP/presentations/2023-NCSS-NCSP-poster.pdf)\n\n## aqp in the Wild\n  * https://www.pnas.org/content/115/26/6751\n  * [as found by Scopus](https://www.scopus.com/results/citedbyresults.uri?sort=plf-f\u0026cite=2-s2.0-84871520076\u0026src=s\u0026imp=t\u0026sid=77a47f45322dcfd492772ab2198cbd60\u0026sot=cite\u0026sdt=a\u0026sl=0\u0026origin=inward\u0026editSaveSearch=\u0026txGid=2178c12c5b47dbcdd8b2f12cd9a81478)\n  * [as found by Google Scholar](https://scholar.google.com/scholar?cites=14155970656017510549\u0026as_sdt=5,29\u0026sciodt=0,29\u0026hl=en)\n  * http://www.scielo.br/scielo.php?script=sci_arttext\u0026pid=S2179-80872019000100121\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncss-tech%2Faqp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncss-tech%2Faqp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncss-tech%2Faqp/lists"}