Construct a network from edge_list dataframe
c_net_from_edgelist(
edgelist,
vertex_df = NULL,
direct = FALSE,
e_type = NULL,
e_class = NULL
)
metanet
Other build:
c_net_build()
,
c_net_set()
,
c_net_update()
,
multi_net_build()
data(edgelist)
edge_net <- c_net_from_edgelist(arc_count, vertex_df = arc_taxonomy)
#> No 'from' and 'to' in the colnames(edgelist), use the first two columns as the 'from' and 'to'.
edge_net <- c_net_set(edge_net, vertex_class = "Phylum", edge_width = "n")
c_net_plot(edge_net)