sharpshootR

Miscellaneous soil data management, summary, visualization, and conversion utilities to support soil survey.

https://github.com/ncss-tech/sharpshootR

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.5%) to scientific vocabulary

Keywords from Contributors

kssl nasis nrcs soil soil-data-access soil-survey soilweb usda digital-soil-mapping ncss-tech
Last synced: 10 months ago · JSON representation

Repository

Miscellaneous soil data management, summary, visualization, and conversion utilities to support soil survey.

Basic Info
Statistics
  • Stars: 19
  • Watchers: 7
  • Forks: 3
  • Open Issues: 12
  • Releases: 2
Created over 10 years ago · Last pushed 12 months ago
Metadata Files
Readme Changelog

README.Rmd

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.align = 'center',
  fig.path = "man/figures/README-",
  dev = "svglite",
  message = FALSE,
  warning = FALSE,
  tidy = FALSE
)
```

[![R build status](https://github.com/ncss-tech/sharpshootR/workflows/R-CMD-check/badge.svg)](https://github.com/ncss-tech/sharpshootR/actions)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/sharpshootR)](http://cran.r-project.org/web/packages/sharpshootR)
[![Total_Downloads](http://cranlogs.r-pkg.org/badges/grand-total/sharpshootR)](https://cran.r-project.org/package=sharpshootR)
[![sharpshootR Manual](https://img.shields.io/badge/docs-HTML-informational)](http://ncss-tech.github.io/sharpshootR/)

# sharpshootR

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:

```{r eval = FALSE}
install.packages('sharpshootR', dep = TRUE)
```

Get the development version from Github, after installing the CRAN version + dependencies:

```{r eval = FALSE}
remotes::install_github("ncss-tech/sharpshootR", dependencies=FALSE, upgrade=FALSE, build=FALSE)
```

### Install Suggested Packages
```{r eval = 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)
```

## Website
[http://ncss-tech.github.io/AQP/](http://ncss-tech.github.io/AQP/)

## Examples

```{r fig.width=9, fig.height=5}
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
```{r}
citation("sharpshootR")
```

## Quick Reference

### Visualization
   * [`aggregateColorPlot`](http://ncss-tech.github.io/sharpshootR/reference/aggregateColorPlot.html)
   * [`aspect.plot`](http://ncss-tech.github.io/sharpshootR/reference/aspect.plot.html)
   * [`diagnosticPropertyPlot`](http://ncss-tech.github.io/sharpshootR/reference/diagnosticPropertyPlot.html)
   * [`plotAvailWater`](http://ncss-tech.github.io/sharpshootR/reference/plotAvailWater.html)
   * [`plotProfileDendrogram`](http://ncss-tech.github.io/sharpshootR/reference/plotProfileDendrogram.html)
   * [`plotSoilRelationGraph`](http://ncss-tech.github.io/sharpshootR/reference/plotSoilRelationGraph.html)
   * [`plotSoilRelationChordGraph`](http://ncss-tech.github.io/sharpshootR/reference/plotSoilRelationChordGraph.html)
   * [`plotTransect`](http://ncss-tech.github.io/sharpshootR/reference/plotTransect.html)
   * [`SoilTaxonomyDendrogram`](http://ncss-tech.github.io/sharpshootR/reference/SoilTaxonomyDendrogram.html)
   * [`vizGeomorphicComponent`](http://ncss-tech.github.io/sharpshootR/reference/vizHillslopePosition.html)
   * [`vizHillslopePosition`](http://ncss-tech.github.io/sharpshootR/reference/vizHillslopePosition.html)
   * [`vizFlatsPosition`](http://ncss-tech.github.io/sharpshootR/reference/vizFlatsPosition.html)
   * [`vizTerracePosition`](http://ncss-tech.github.io/sharpshootR/reference/vizTerracePosition.html)
   * [`vizMountainPosition`](http://ncss-tech.github.io/sharpshootR/reference/vizMountainPosition.html)
   * [`vizAnnualClimate`](http://ncss-tech.github.io/sharpshootR/reference/vizAnnualClimate.html)
   * [`plotWB`](http://ncss-tech.github.io/sharpshootR/reference/plotWB.html)
   * [`plotWB_lines`](http://ncss-tech.github.io/sharpshootR/reference/plotWB_lines.html)

   
### Climate
   * [`monthlyWB`](http://ncss-tech.github.io/sharpshootR/reference/monthlyWB.html)
   * [`simpleWB`](http://ncss-tech.github.io/sharpshootR/reference/simpleWB.html)
   * [`dailyWB`](http://ncss-tech.github.io/sharpshootR/reference/dailyWB.html)
   * [`dailyWB_SSURGO`](http://ncss-tech.github.io/sharpshootR/reference/dailyWB_SSURGO.html)
   * [`CDECquery`](http://ncss-tech.github.io/sharpshootR/reference/CDECquery.html)
   * [`CDECsnowQuery`](http://ncss-tech.github.io/sharpshootR/reference/CDECsnowQuery.html)
   * [`FFD`](http://ncss-tech.github.io/sharpshootR/reference/FFD.html)
   * [`FFDplot`](http://ncss-tech.github.io/sharpshootR/reference/FFD.html)
   * [`PCP_plot`](http://ncss-tech.github.io/sharpshootR/reference/PCP_plot.html)
   * [`waterDayYear`](http://ncss-tech.github.io/sharpshootR/reference/waterDayYear.html)


### Spatial Data
   * [`constantDensitySampling`](http://ncss-tech.github.io/sharpshootR/reference/constantDensitySampling.html)
   * [`generateLineHash`](http://ncss-tech.github.io/sharpshootR/reference/generateLineHash.html)
   * [`polygonAdjacency`](http://ncss-tech.github.io/sharpshootR/reference/polygonAdjacency.html)
   * [`PLSS2LL`](http://ncss-tech.github.io/sharpshootR/reference/PLSS2LL.html)
   * [`LL2PLSS`](http://ncss-tech.github.io/sharpshootR/reference/LL2PLSS.html)
   * [`sample.by.poly`](http://ncss-tech.github.io/sharpshootR/reference/sample.by.poly.html)
   * [`samplingStability`](http://ncss-tech.github.io/sharpshootR/reference/samplingStability.html)
   * [`sampleRasterStackByMU`](http://ncss-tech.github.io/sharpshootR/reference/sampleRasterStackByMU.html)


### Utility
   * [`component.adj.matrix`](http://ncss-tech.github.io/sharpshootR/reference/component.adj.matrix.html)
   * [`dist.along.grad`](http://ncss-tech.github.io/sharpshootR/reference/dist.along.grad.html)


### Misc.
   * [`percentileDemo`](http://ncss-tech.github.io/sharpshootR/reference/percentileDemo.html)
   * [`multinominal2logical`](http://ncss-tech.github.io/sharpshootR/reference/multinominal2logical.html)
   * [`site_photos_kml`](http://ncss-tech.github.io/sharpshootR/reference/site_photos_kml.html)


## Related Packages
 * [`aqp`](https://github.com/ncss-tech/aqp)
 * [`soilDB`](https://github.com/ncss-tech/soilDB)
 


## Related Presentations / Posters
  * [Numerical Classification of Soil Profiles (2023 NCSS Meetings)](https://ncss-tech.github.io/AQP/presentations/2023-NCSS-NCSP-poster.pdf)

Owner

  • Name: ncss-tech
  • Login: ncss-tech
  • Kind: organization
  • Location: United States of America

Collection of repositories contributed by members of the National Cooperative Soil Survey

GitHub Events

Total
  • Issues event: 5
  • Watch event: 3
  • Issue comment event: 4
  • Push event: 39
Last Year
  • Issues event: 5
  • Watch event: 3
  • Issue comment event: 4
  • Push event: 39

Committers

Last synced: 11 months ago

All Time
  • Total Commits: 1,279
  • Total Committers: 9
  • Avg Commits per committer: 142.111
  • Development Distribution Score (DDS): 0.219
Past Year
  • Commits: 37
  • Committers: 2
  • Avg Commits per committer: 18.5
  • Development Distribution Score (DDS): 0.216
Top Committers
Name Email Commits
Dylan Beaudette d****e 999
Andrew G. Brown a****n@u****v 116
Beaudette d****e@c****v 49
Pierre Roudier p****r 47
Jay Skovlin j****n 36
Stephen Roecker s****r@g****m 16
Jay Skovlin j****n@g****m 10
Itai Trilnick i****k@g****m 5
Jay Skovlin 1****2@F****V 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 47
  • Total pull requests: 15
  • Average time to close issues: over 1 year
  • Average time to close pull requests: 12 days
  • Total issue authors: 8
  • Total pull request authors: 4
  • Average comments per issue: 1.06
  • Average comments per pull request: 1.47
  • Merged pull requests: 14
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 4
  • Pull requests: 0
  • Average time to close issues: 1 day
  • Average time to close pull requests: N/A
  • Issue authors: 3
  • Pull request authors: 0
  • Average comments per issue: 0.75
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • dylanbeaudette (39)
  • brownag (2)
  • schochastics (1)
  • t6166as (1)
  • jhollist (1)
  • rsbivand (1)
  • MollicMeyer (1)
  • adamhsparks (1)
Pull Request Authors
  • brownag (8)
  • trilnick (3)
  • jskovlin (2)
  • dylanbeaudette (2)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 993 last-month
  • Total docker downloads: 21,613
  • Total dependent packages: 1
  • Total dependent repositories: 4
  • Total versions: 24
  • Total maintainers: 1
cran.r-project.org: sharpshootR

A Soil Survey Toolkit

  • Versions: 24
  • Dependent Packages: 1
  • Dependent Repositories: 4
  • Downloads: 993 Last month
  • Docker Downloads: 21,613
Rankings
Docker downloads count: 0.4%
Average: 13.3%
Stargazers count: 14.2%
Dependent repos count: 14.8%
Downloads: 15.7%
Forks count: 17.2%
Dependent packages count: 17.6%
Maintainers (1)
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • Hmisc * imports
  • RColorBrewer * imports
  • ape * imports
  • aqp * imports
  • circular * imports
  • cluster * imports
  • curl * imports
  • digest * imports
  • e1071 * imports
  • grDevices * imports
  • graphics * imports
  • grid * imports
  • igraph * imports
  • lattice * imports
  • methods * imports
  • parallel * imports
  • plyr * imports
  • reshape2 * imports
  • scales * imports
  • soilDB * imports
  • sp * imports
  • stats * imports
  • stringi * imports
  • utils * imports
  • vegan * imports
  • Evapotranspiration * suggests
  • MASS * suggests
  • SoilTaxonomy * suggests
  • circlize * suggests
  • daymetr * suggests
  • dendextend * suggests
  • elevatr * suggests
  • farver * suggests
  • gower * suggests
  • httr * suggests
  • hydromad >= 0.9.27 suggests
  • jsonlite * suggests
  • latticeExtra * suggests
  • raster * suggests
  • rgdal * suggests
  • rgeos * suggests
  • rvest * suggests
  • spdep * suggests
  • testthat * suggests
  • venn * suggests
  • xml2 * suggests
  • zoo * suggests
.github/workflows/R-CMD-check.yml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite