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.

Installation

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)

Install Suggested Packages

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)

Examples

library(sharpshootR)
library(aqp)

# some example soil series, from soilDB::fetchOSD()
data("OSDexamples")

# extract Soil Profile Collection
x <- OSDexamples$SPC

# use the first 10 profiles
x <- x[1:10, ]

# arrange according to subgroup classification
SoilTaxonomyDendrogram(
  x, 
  KST.order = TRUE,
  scaling.factor = 0.02,
  cex.taxon.labels = 0.75,
  width = 0.33, 
  max.depth = 150, 
  depth.axis = list(line = -3, cex = 0.8, style = 'compact'),
  hz.distinctness.offset = 'hzd'
  )

Citation

citation("sharpshootR")
#> To cite package 'sharpshootR' in publications use:
#> 
#>   Beaudette D, Skovlin J, Roecker S, Brown A (????). _sharpshootR: A
#>   Soil Survey Toolkit_. doi:10.32614/CRAN.package.sharpshootR
#>   <https://doi.org/10.32614/CRAN.package.sharpshootR>, R package
#>   version 2.4, <https://CRAN.R-project.org/package=sharpshootR>.
#> 
#> A BibTeX entry for LaTeX users is
#> 
#>   @Manual{,
#>     title = {sharpshootR: A Soil Survey Toolkit},
#>     author = {Dylan Beaudette and Jay Skovlin and Stephen Roecker and Andrew Brown},
#>     note = {R package version 2.4},
#>     url = {https://CRAN.R-project.org/package=sharpshootR},
#>     doi = {10.32614/CRAN.package.sharpshootR},
#>   }