Description Usage Arguments Value Examples
Useful if you want to convert between node labels (c), tip labels
(t) and the internal integer number that identifies that node
(nn). Particularly for use with plotting libraries.
1 2 3 | nn.to.name(tr, x)
name.to.nn(tr, x)
|
tr |
object of type |
x |
vector of numerics or characters |
vector
1 2 3 4 | tr <- named_rtree(5)
name.to.nn(tr, 'n1')
name.to.nn(tr,c('n1','n2','t1'))
nn.to.name(tr, 1:9)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.