# A simple example ----------------------------------------------------------
# This tree has a coding different from ape's
mytree <- matrix(c(1, 2, 1, 3, 2, 4, 2, 5), byrow = TRUE, ncol=2)
mytree
ans <- as.phylo(mytree)
ans
plot(ans)
Run the code above in your browser using DataLab