Last chance! 50% off unlimited learning
Sale ends in
Node
has after conversion to a phylo objectUse this function when plotting a Node as a phylo, e.g. to set custom labels to plot.
GetPhyloNr(x, type = c("node", "edge"))
The Node
Either "node" (the default) or "edge" (to get the number of the edge from x
to its parent)
an integer representing the node
Other ape phylo conversions: as.Node.phylo
;
as.phylo.Node
# NOT RUN {
library(ape)
library(data.tree)
data(acme)
ap <- as.phylo(acme)
plot(ap)
nodelabels("IT Dep.", GetPhyloNr(acme$Climb("IT")))
edgelabels("Good!", GetPhyloNr(acme$Climb("IT", "Switch to R"), "edge"))
# }
Run the code above in your browser using DataLab