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)

TreeAndLeaf documentation built on Nov. 8, 2020, 4:51 p.m.