| hilleven | R Documentation |
Evenness expressed through Hill numbers as the ratio of diversity of order
q to richness (qD / 0D), which ranges from 0 to 1.
hilleven(
data,
q = c(1, 2),
tree = NULL,
dist = NULL,
tau = NULL,
type = c("auto", "neutral", "phylogenetic", "functional"),
out = c("tibble", "matrix")
)
data |
Counts: a numeric vector (one sample), a matrix/data.frame
(taxa x samples), a |
q |
Numeric vector of diversity orders (> 0 are meaningful for
evenness). Defaults to |
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_evenness (default) with a
plot() method, or a matrix of evenness values (samples in rows, orders in
columns) when out = "matrix".
hilldiv()
counts <- matrix(c(10, 0, 5, 2, 8, 1), nrow = 3,
dimnames = list(c("t1", "t2", "t3"), c("s1", "s2")))
hilleven(counts)
plot(hilleven(counts, q = c(1, 1.5, 2)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.