phylo2mst: Conversion from PHYLO to MST Object

View source: R/phylo2mst.R

phylo2mstR Documentation

Conversion from PHYLO to MST Object

Description

Converts a phylogenetic tree (class phylo) into a minimum spanning tree (class mst).

Usage

phylo2mst(phy)

Arguments

phy

An object of class phylo.

Details

The current version of phylo2mst does not handle polytomies and does not incorporate branch length information. Note that topological information is lost during the conversion.

Examples

phy <- rtree(12)
plot(phy)
mst <- phylo2mst(phy)
plot(mst)

heibl/ips documentation built on April 18, 2024, 11:59 p.m.