Visualize NASIS pedons in interactive HTML report with overlays of SSURGO, STATSGO or custom polygons.
This report has {aqp}, {sf}, {mapview}, {knitr}, {soilDB} off CRAN and {NASIStools} off GitHub as dependencies.
To use the report:
Navigate to your desired parent working directory.
Run soilReports::reportSetup("southwest/spatial-pedons")
to install dependencies
Run soilReports::reportInit("southwest/spatial-pedons", outputDir = "spatial-pedons")
to install a report instance in outputDir
. Specify overwrite
argument as needed. Use reportUpdate
if an existing older report instance is being updated and you want to preserve config.R contents.
Navigate to "spatial-pedons"
directory and inspect report contents. Open report.Rmd in RStudio and click "Knit" button, or render()
with {rmarkdown} manually.
report.Rmd - main report document
config.R - user-level configuration and options; should not be over-written by reportUpdate
NEWS.md - Changelog (optional)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.