hydOrder | R Documentation |
Hydrologic Ordering of a Geomorphic Proportion Matrix
hydOrder(x, g, clust = TRUE, j.amount = 0)
x |
x |
g |
character, name of geomorphic summary table, one of: |
clust |
logical, perform clustering of geomorphic proportion matrix |
j.amount |
amount of noise applied to rows having a duplicate proportion vector, passed to |
when clust = FALSE
a vector of series names, in hydrologic ordering, otherwise a list
with the following elements:
clust
: rotated hclust
object
hyd.order
: vector of series names, in hydrologic ordering
clust.hyd.order
: vector of series names, after clustering + rotation, approximate hydrologic ordering
match.rate
: fraction of series matching target hydrologic ordering, after clustering + rotation
obj
: objective function value (sum of squared rank differences), used by iterateHydOrder()
D.E. Beaudette
# example data, similar to results from soilDB::fetchOSD(..., extended = TRUE)
data("OSDexamples")
# no clustering of the geomorphic proportion matrix
h <- hydOrder(OSDexamples$hillpos, g = 'hillpos', clust = FALSE)
# compare with original order
data.frame(
original = OSDexamples$hillpos$series,
ordered = h
)
# cluster results
h <- hydOrder(OSDexamples$hillpos, g = 'hillpos', clust = TRUE)
str(h)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.