Learn R Programming

TML (version 2.3.0)

convert.to.tree: Create a phylogenetic tree from an ultrametric

Description

This function constructs a phylogenetic tree from an ultrametric.

Usage

convert.to.tree(n, L, u)

Value

A phylogenetic tree of class phylo

Arguments

n

is the number of leaves

L

is a vector of labels (strings) of leaves

u

is an ultrametric

Author

Ruriko Yoshida ryoshida@nps.edu

Examples

Run this code
um<-Sim_Trees21[1,]
ll <- 10
L <- LETTERS[1:10]
tr<-convert.to.tree(ll, L, um)

Run the code above in your browser using DataLab