View source: R/tree_building.R
edgelist_to_phylo | R Documentation |
Make a phylo object from an edgelist
edgelist_to_phylo(edgelist)
edgelist |
A matrix of node names |
phylo object
edgelist <- matrix(c('A', 'A', 'B', 'B', 'B', 'C', 'D', 'E', 'A', 'F'), ncol=2)
tree <- edgelist_to_phylo(edgelist)
# A bug in ape causes a segfault here
# plot(tree, show.node.label=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.