View source: R/node_conversion_ape.R
GetPhyloNr | R Documentation |
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"))
x |
The Node |
type |
Either "node" (the default) or "edge" (to get the number of the edge from |
an integer representing the node
Other ape phylo conversions:
as.Node.phylo()
,
as.phylo.Node()
library(ape)
library(data.tree)
data(acme)
ap <- as.phylo(acme)
#plot(ap)
#nodelabels("IT Dep.", GetPhyloNr(Climb(acme, "IT")))
#edgelabels("Good!", GetPhyloNr(Climb(acme, "IT", "Switch to R"), "edge"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.