phylo2igraph: Convert a phylo object to an igraph

Description Usage Arguments Value Examples

View source: R/phylo2igraph.R

Description

Function for converting a phylo object to an igraph.

Usage

1

Arguments

phy

A phylo object with labeled tips <phylo>.

Value

An igraph object.

Examples

1
2
phy <- ape::rtree(10, tip.label = c(1:10))
gg <- phylo2igraph(phy)

leonardokume/TreeAndLeaf documentation built on July 10, 2020, 4:57 p.m.