Learn R Programming

ips (version 0.0.11)

phylo2mst: 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

Run this code
# NOT RUN {
phy <- rtree(12)
plot(phy)
mst <- phylo2mst(phy)
plot(mst)
# }

Run the code above in your browser using DataLab