| hilldiss | R Documentation |
Compute overall (multi-sample) dissimilarity metrics from the Hill-number
beta diversity following Chiu et al. (2014). These are the complements of the
similarities returned by hillsim().
hilldiss(
data,
q = c(0, 1, 2),
metric = c("S", "C", "U", "V"),
tree = NULL,
dist = NULL,
tau = NULL,
type = c("auto", "neutral", "phylogenetic", "functional"),
out = c("tibble", "matrix")
)
data |
A count table (taxa x samples) or a supported object; a single sample is not meaningful for partitioning. |
q |
Numeric vector of diversity orders (>= 0). Defaults to
|
metric |
Dissimilarity metric(s) to return, any of |
tree |
A phylogenetic tree of class |
dist |
A functional distance matrix (or |
tau |
Optional functional distance threshold. Defaults to |
type |
Diversity type: |
out |
Output shape: |
A long-format data.frame of class hill_dissimilarity (default,
with a plot() method), or a matrix/vector of dissimilarities when
out = "matrix".
hillsim(), hillpair(), hillpart()
counts <- matrix(c(10, 0, 5, 2, 8, 1), nrow = 3,
dimnames = list(c("t1", "t2", "t3"), c("s1", "s2")))
hilldiss(counts)
plot(hilldiss(counts))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.