df2net_tree | R Documentation |
Transform a dataframe to a network edgelist.
df2net_tree(test, fun = sum)
test |
df |
fun |
default: sum |
metanet
data("otutab", package = "pcutils")
cbind(taxonomy, num = rowSums(otutab))[1:20, ] -> test
df2net_tree(test) -> ttt
plot(ttt)
if (requireNamespace("ggraph")) plot(ttt, coors = as_circle_tree())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.