| gut_traits | R Documentation |
A trait table for the 24 MAGs in gut_counts, mixing continuous, categorical
and binary traits. Convert it to a functional distance with traits2dist()
for the functional-diversity paths.
gut_traits
A data frame with 24 rows (MAGs) and 4 columns:
Approximate genome size in Mbp (numeric).
GC content as a proportion (numeric).
Oxygen tolerance: aerobe, anaerobe or facultative (factor).
Motility indicator, 0/1 (integer).
gut_counts, gut_tree, traits2dist()
d <- traits2dist(gut_traits)
hilldiv(gut_counts, q = c(0, 1), dist = d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.