Description Usage Arguments Value Author(s) Examples
View source: R/tree_trackNode.R
trackNode
track nodes of a phylo tree by adding the alias labels to
them
1 | trackNode(tree)
|
tree |
A phylo object |
a phylo object
Ruizhu Huang
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(ggtree)
data(tinyTree)
ggtree(tinyTree, branch.length = 'none') +
geom_text2(aes(label = label), hjust = -0.3) +
geom_text2(aes(label = node), vjust = -0.8,
hjust = -0.3, color = 'blue')
#check whether the node number and node label are matched
trackTree <- trackNode(tinyTree)
ggtree(trackTree, branch.length = 'none') +
geom_text2(aes(label = label), hjust = -0.3) +
geom_text2(aes(label = node), vjust = -0.8,
hjust = -0.3, color = 'blue')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.