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)
http://ncss-tech.github.io/AQP/
library(aqp)
#> This is aqp 1.43
data(sp4)
depths(sp4) <- id ~ top + bottom
par(mar = c(0, 0, 4, 0))
plot(sp4, color = 'clay')
plot(sp4, color = 'CF')
citation("aqp")
#>
#> To cite aqp in publications use:
#>
#> Beaudette, D., Roudier, P., Brown, A. (2022). aqp: Algorithms for
#> Quantitative Pedology. R package version 1.42.
#> <https://CRAN.R-project.org/package=aqp>
#>
#> Beaudette, D.E., Roudier, P., O'Geen, A.T. Algorithms for
#> quantitative pedology: A toolkit for soil scientists, Computers &
#> Geosciences, Volume 52, March 2013, Pages 258-268, ISSN 0098-3004,
#> http://dx.doi.org/10.1016/j.cageo.2012.10.020.
#>
#> To see these entries in BibTeX format, use 'print(<citation>,
#> bibtex=TRUE)', 'toBibtex(.)', or set
#> 'options(citation.bibtex.max=999)'.