Learn R Programming

sharpshootR (version 1.8)

vizHillslopePosition: Visual Summary of Hillslope Position

Description

A unique display of hillslope position probability.

Usage

vizHillslopePosition(x, s = NULL, annotations = TRUE, annotation.cex = 0.75)

Arguments

x

data.frame as created by soilDB::fetchOSD(..., extended=TRUE), see details

s

an optional soil series name, highlighted in the figure

annotations

logical, add number of record and normalized Shannon entropy values

annotation.cex

annotation label scaling factor

Value

a list with the following elements:

fig

lattice object (the figure)

order

ordering of soil series

Details

See the Soil Series Query Functions tutorial for more information.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
if(requireNamespace("curl") &
   curl::has_internet() &
   require(aqp) & 
   require(soilDB)) {
  
  # soils of interest
  s.list <- c('musick', 'cecil', 'drummer', 'amador', 'pentz', 'reiff', 
              'san joaquin','montpellier','grangeville','pollasky','ramona')
  
  # fetch and convert data into an SPC
  s <- fetchOSD(s.list, extended=TRUE)
  
  res <- vizHillslopePosition(s$hillpos)
  print(res$fig)
  
}
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab