library(ape)
data(MyHiers)
Tree <- MakeHierarchyTree(MyHiers, includeNodeLabels=FALSE)
edges <- MakeEdgeLabels(MyHiers)
plot(Tree, show.node.label=FALSE)
edgelabels(text=names(edges), edge=edges)
## Not run:
# edges <- MakeEdgeLabels(MyHiers, missingData="pruneTaxa", duplicateEdgeLabels="recent")
# plot(Tree, show.node.label=FALSE)
# edgelabels(text=names(edges), edge=edges)
# ## End(Not run)
Run the code above in your browser using DataLab