Learn R Programming

TML (version 2.3.0)

vector.to.equidistant.tree: Vector to equidistant tree

Description

A vector of pairwise distances is used to reconstruct the corresponding equidistant tree

Usage

vector.to.equidistant.tree(vec)

Value

equidistant phylogenetic tree

Arguments

vec

vector of pairwise distances in R^(m choose 2), where m is the number of leaves

Author

Georgios Aliatimis g.aliatimis@lancaster.ac.uk

References

Aliatimis, Georgios, Ruriko Yoshida, Burak Boyaci and James A. Grant (2023). Tropical Logistic Regression on Space of Phylogenetic Trees

Examples

Run this code
vec = c(1/3,1,1,1,1,1/3)
tree = vector.to.equidistant.tree(vec)
plot(tree)

Run the code above in your browser using DataLab