| hillprof | R Documentation |
Compute a diversity profile: Hill numbers evaluated over a fine sweep of
diversity orders q. Profiles are the standard diagnostic for comparing the
diversity of assemblages, since the ranking of samples can change with q.
hillprof(
data,
q = seq(0, 3, by = 0.1),
tree = NULL,
dist = NULL,
tau = NULL,
type = c("auto", "neutral", "phylogenetic", "functional"),
reference = c("pool", "sample"),
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 to evaluate. Defaults to a fine sweep from 0 to 3. |
tree |
A phylogenetic tree of class |
dist |
A functional distance matrix (or |
tau |
Optional functional distance threshold. Defaults to |
type |
Diversity type: |
reference |
Reference tree depth for phylogenetic Hill numbers
(ignored for neutral and functional types). |
out |
Output type: |
A long-format data.frame of class hill_profile (columns q,
sample, value) with a plot() method, or a matrix
(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")))
prof <- hillprof(counts)
plot(prof)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.