powered by
Ancestors(x, node, type=c("all","parent")) Children(x, node) Siblings(x, node, include.self=FALSE) Descendants(x, node, type=c("tips","children","all"))
treewalk
tree = rtree(10) plot(tree, show.tip.label = FALSE) nodelabels() tiplabels() Ancestors(tree, 1, "all") Children(tree, 11) Descendants(tree, 11, "tips") Siblings(tree, 3)
Run the code above in your browser using DataLab