edgelist_to_phylo: Make a phylo object from an edgelist

View source: R/tree_building.R

edgelist_to_phyloR Documentation

Make a phylo object from an edgelist

Description

Make a phylo object from an edgelist

Usage

edgelist_to_phylo(edgelist)

Arguments

edgelist

A matrix of node names

Value

phylo object

Examples

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)

arendsee/phylostratr documentation built on Dec. 31, 2022, 10:22 a.m.