Learn R Programming

sharpshootR (version 2.5)

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

404

Version

2.5

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Dylan Beaudette

Last Published

May 4th, 2026

Functions in sharpshootR (2.5)

OSDexamples

Example output from soilDB::fetchOSD()
PCP_plot

Percentiles of Cumulative Precipitation
dueling.dendrograms

Dueling Dendrograms
moistureStateProportions

Compute moisture state proportions
estimateSoilMoistureState

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

Join Document Adjacency
diagnosticPropertyPlot2

Diagnostic Property Plot (lattice)
dailyWB

Simple Daily Water Balance
moistureStateStats

Statistics on Soil Moisture State
moistureStateThreshold

Apply a threshold to soil moisture states
monthlyWB

Monthly Water Balances
monthlyWB_summary

Water Balance Summaries
dailyWB_SSURGO

Perform daily water balance modeling using SSURGO and DAYMET
constantDensitySampling

Sample Polygons at a Fixed Density
diagnosticPropertyPlot

Diagnostic Property Plot (base graphics)
dist.along.grad

Compute Euclidean distance along a gradient.
hydOrder

Hydrologic Ordering of a Geomorphic Proportion Matrix
huePositionPlot

Hue Position Chart
isMineralSoilMaterial

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

Iteratively Attempt Hydrologic Ordering of Geomorphic Proportion Matrix
generateLineHash

Generate a unique ID for line segments
formatPLSS

Format Public Land Survey System (PLSS) Components
percentileDemo

Demonstration of Percentiles vs. Mean / SD
multinominal2logical

Convert Multinominal to Logical Matrix
polygonAdjacency

Summarize Spatial Adjacency of Polygon Fabric
plotWB_lines

Visualization of a monthly water balance using lines and areas
plotGeomorphCrossSection

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

Visual Demonstration of Available Soil Water
sample.by.poly

Sample a Single Polygon at a Target Density
reconcileOSDGeomorph

Reconcile IDs between a SPC and associated geomorphic proportion table
sharpshootR-package

A collection of functions to support soil survey
sampleRasterStackByMU

Sample a Raster Stack
plotTransect

Arrange Profiles along a Transect
samplingStability

Estimate Sampling Stability
prepare_SSURGO_hydro_data

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

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

Visualize Soil Relationships via Chord Diagram
plotWB

Visualize Monthly Water Balance
plotSoilRelationGraph

Plot a component relation graph
simpleWB

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

Visual Summary of Flat Landform Positions
vizAnnualClimate

Annual Climate Summaries for Soil Series Data
vizSurfaceShape

Visual Summary of Surface Shape
vizTerracePosition

Visual Summary of Terraced Landform Positions
vizMountainPosition

Visual Summary of Mountain Slope Positions
vizHillslopePosition

Visual Summary of Hillslope Position
vizGeomorphons

Visual Summary of Landform Classification by Geomorphon
vizGeomorphicComponent

Visual Summary of Hill Landform Positions
table5.2

Table 5.2 from Hole and Campbell, 1985.
site_photos_kml

site_photos_kml
plotDAF

Graphical Demonstration of Declining Availability Functions
CDEC_StationInfo

CDEC Sensor Details (by Station)
HenryTimeLine

Sensor Data Timeline from Henry Mount Soil and Water DB
CDECsnowQuery

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

Easy Access to the CDEC API
ESS_by_Moran_I

Estimate Effective Sample Size
FFD

Frost-Free Day Evaluation
FFDplot

Plot output from FFD()
PLSS2LL

Lookup Geographic Coordinates for Public Land Survey System Descriptions
colorMixtureVenn

Create a Venn Diagram of Simulated Color Mixtures
LL2PLSS

LL2PLSS
Moran_I_ByRaster

Compute Moran's I for a raster sampled from a mapunit extent
SoilTaxonomyDendrogram

Soil Taxonomy Dendrogram
HHM

Highland Meadows
amador

SSURGO Data Associated with the Amador Soil Series
aspect.plot

Plot Aspect Data
CDEC.snow.courses

CDEC Snow Course List
component.adj.matrix

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