df2net_tree {MetaNet} | R Documentation |
Transform a dataframe to a network edgelist.
Description
Transform a dataframe to a network edgelist.
Usage
df2net_tree(test, fun = sum)
Arguments
test |
df |
fun |
default: sum |
Value
metanet
Examples
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())
[Package MetaNet version 0.1.2 Index]