knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.align = 'center', fig.path = "man/figures/README-", dev = "svglite", message = FALSE, warning = FALSE, tidy = FALSE )
The 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
Get the stable version from CRAN:
install.packages('aqp', dep=TRUE)
Get the development version from Github, after installing the CRAN version + dependencies:
remotes::install_github("ncss-tech/aqp", dependencies=FALSE, upgrade=FALSE, build=FALSE)
Install suggested packages:
p <- c("colorspace", "ape", "soilDB", "latticeExtra", "tactile", "compositions", "sharpshootR", "markovchain", "xtable", "testthat", "Gmedian", "farver", "Hmisc", "tibble", "RColorBrewer", "scales", "digest", "MASS", "mpspline2", "soiltexture", "knitr", "rmarkdown", "mvtnorm") install.packages(p)
http://ncss-tech.github.io/AQP/
library(aqp) # example data from three official series descriptions data("osd") # simulate 2 copies of each # using horizon boundary distinctness offsets set.seed(10101) x <- perturb(osd, n = 2, boundary.attr = 'hzd', min.thickness = 5) # tighter margins par(mar = c(0, 0, 1, 0)) # adjust default style # depict truncation at 175cm with ragged bottom plotSPC( x, name.style = 'center-center', cex.names = 1, width = 0.33, cex.id = 0.9, hz.distinctness.offset = 'hzd', max.depth = 175, depth.axis = FALSE, hz.depths = TRUE )
citation("aqp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.