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. 23, 2024, 1:31 p.m.