knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.align = 'center', fig.path = "man/figures/README-", dev = "svglite", message = FALSE, warning = FALSE, tidy = FALSE )
This package contains a mish-mash of functionality and sample data related to the daily business of soil survey operations with the USDA-NRCS. Many of the functions are highly specialized and inherit default arguments from the names used by the various NCSS (National Cooperative Soil Survey) databases.
Get the stable version from CRAN:
install.packages('sharpshootR', dep = TRUE)
Get the development version from Github, after installing the CRAN version + dependencies:
remotes::install_github("ncss-tech/sharpshootR", dependencies=FALSE, upgrade=FALSE, build=FALSE)
p <- c("MASS", "spdep", "circlize", "rvest", "xml2", "terra", "raster", "exactextractr", "httr", "jsonlite", "igraph", "dendextend", "testthat", "hydromad", "latticeExtra", "farver", "venn", "gower", "daymetr", "elevatr", "Evapotranspiration", "zoo", "SoilTaxonomy", "sf", "Hmisc" ) install.packages(p)
http://ncss-tech.github.io/AQP/
library(sharpshootR) library(aqp) data(loafercreek, package = 'soilDB') # generalize horizon names using REGEX rules n <- c('Oi', 'A', 'BA','Bt1','Bt2','Bt3','Cr','R') p <- c('O', '^A$|Ad|Ap|AB','BA$|Bw', 'Bt1$|^B$','^Bt$|^Bt2$','^Bt3|^Bt4|CBt$|BCt$|2Bt|2CB$|^C$','Cr','R') loafercreek$genhz <- generalize.hz(loafercreek$hzname, n, p) # remove non-matching generalized horizon names loafercreek$genhz[loafercreek$genhz == 'not-used'] <- NA loafercreek$genhz <- factor(loafercreek$genhz) # aggregate color data, this function is from the `aqp` package a <- aggregateColor(loafercreek, 'genhz', k = 8) # plot par(mar=c(4.5, 1.25, 1, 0.25)) aggregateColorPlot(a, print.n.hz = TRUE)
citation("sharpshootR")
aggregateColorPlot
aspect.plot
diagnosticPropertyPlot
plotAvailWater
plotProfileDendrogram
plotSoilRelationGraph
plotSoilRelationChordGraph
plotTransect
SoilTaxonomyDendrogram
vizGeomorphicComponent
vizHillslopePosition
vizFlatsPosition
vizTerracePosition
vizMountainPosition
vizAnnualClimate
plotWB
plotWB_lines
constantDensitySampling
generateLineHash
polygonAdjacency
PLSS2LL
LL2PLSS
sample.by.poly
samplingStability
sampleRasterStackByMU
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.