Learn R Programming

sharpshootR (version 2.4)

A Soil Survey Toolkit

Description

A collection of data processing, visualization, and export functions to support soil survey operations. Many of the functions build on the `SoilProfileCollection` S4 class provided by the aqp package, extending baseline visualization to more elaborate depictions in the context of spatial and taxonomic data. While this package is primarily developed by and for the USDA-NRCS, in support of the National Cooperative Soil Survey, the authors strive for generalization sufficient to support any soil survey operation. Many of the included functions are used by the SoilWeb suite of websites and movile applications. These functions are provided here, with additional documentation, to enable others to replicate high quality versions of these figures for their own purposes.

Copy Link

Version

Install

install.packages('sharpshootR')

Monthly Downloads

2,748

Version

2.4

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Dylan Beaudette

Last Published

September 26th, 2025

Functions in sharpshootR (2.4)

dueling.dendrograms

Dueling Dendrograms
constantDensitySampling

Sample Polygons at a Fixed Density
estimateSoilMoistureState

A very simple estimation of soil moisture state based on volumetric water content
formatPLSS

Format Public Land Survey System (PLSS) Components
isMineralSoilMaterial

Mineral Soil Material Criteria from 12th Ed. of KST
generateLineHash

Generate a unique ID for line segments
moistureStateProportions

Compute moisture state proportions
iterateHydOrder

Iteratively Attempt Hydrologic Ordering of Geomorphic Proportion Matrix
joinAdjacency

Join Document Adjacency
SoilTaxonomyDendrogram

Soil Taxonomy Dendrogram
diagnosticPropertyPlot2

Diagnostic Property Plot (lattice)
moistureStateStats

Statistics on Soil Moisture State
moistureStateThreshold

Apply a threshold to soil moisture states
hydOrder

Hydrologic Ordering of a Geomorphic Proportion Matrix
dailyWB_SSURGO

Perform daily water balance modeling using SSURGO and DAYMET
huePositionPlot

Hue Position Chart
dist.along.grad

Compute Euclidean distance along a gradient.
diagnosticPropertyPlot

Diagnostic Property Plot (base graphics)
plotWB_lines

Visualization of a monthly water balance using lines and areas
percentileDemo

Demonstration of Percentiles vs. Mean / SD
multinominal2logical

Convert Multinominal to Logical Matrix
plotTransect

Arrange Profiles along a Transect
dailyWB

Simple Daily Water Balance
plotGeomorphCrossSection

Present a SoilProfileCollection aligned to a geomorphic summary as cross-section.
plotAvailWater

Visual Demonstration of Available Soil Water
sharpshootR-package

A collection of functions to support soil survey
simpleWB

Simple interface to the hydromad "leaky bucket" soil moisture model
prepare_SSURGO_hydro_data

Get and prepare basic soil hydraulic parameters from SSURGO via SDA
polygonAdjacency

Summarize Spatial Adjacency of Polygon Fabric
prepareDailyClimateData

Prepare daily climate data (DAYMET) for a single point
plotWB

Visualize Monthly Water Balance
vizGeomorphicComponent

Visual Summary of Hill Landform Positions
samplingStability

Estimate Sampling Stability
vizHillslopePosition

Visual Summary of Hillslope Position
site_photos_kml

site_photos_kml
sampleRasterStackByMU

Sample a Raster Stack
monthlyWB

Monthly Water Balances
monthlyWB_summary

Water Balance Summaries
plotSoilRelationChordGraph

Visualize Soil Relationships via Chord Diagram
plotSoilRelationGraph

Plot a component relation graph
table5.2

Table 5.2 from Hole and Campbell, 1985.
reconcileOSDGeomorph

Reconcile IDs between a SPC and associated geomorphic proportion table
vizTerracePosition

Visual Summary of Terraced Landform Positions
sample.by.poly

Sample a Single Polygon at a Target Density
vizMountainPosition

Visual Summary of Mountain Slope Positions
vizSurfaceShape

Visual Summary of Surface Shape
vizFlatsPosition

Visual Summary of Flat Landform Positions
vizAnnualClimate

Annual Climate Summaries for Soil Series Data
ESS_by_Moran_I

Estimate Effective Sample Size
CDEC_StationInfo

CDEC Sensor Details (by Station)
CDEC.snow.courses

CDEC Snow Course List
HenryTimeLine

Sensor Data Timeline from Henry Mount Soil and Water DB
FFDplot

Plot output from FFD()
FFD

Frost-Free Day Evaluation
CDECsnowQuery

Get snow survey data (California only) from the CDEC website.
CDECquery

Easy Access to the CDEC API
HHM

Highland Meadows
PLSS2LL

Lookup Geographic Coordinates for Public Land Survey System Descriptions
Moran_I_ByRaster

Compute Moran's I for a raster sampled from a mapunit extent
aspect.plot

Plot Aspect Data
plotDAF

Graphical Demonstration of Declining Availability Functions
PCP_plot

Percentiles of Cumulative Precipitation
colorMixtureVenn

Create a Venn Diagram of Simulated Color Mixtures
LL2PLSS

LL2PLSS
amador

SSURGO Data Associated with the Amador Soil Series
OSDexamples

Example output from soilDB::fetchOSD()
component.adj.matrix

Create an adjacency matrix from a data.frame of component data