Description Usage Arguments Value Examples
Retrieves a named tag from the given node. Tags are
usually loaded via NHX annotations when reading a tree
file or string (see tree.read
) or by
loading data from an external data frame (see
tree.load.tags
).
1 | tree.get.tag(phylo, node, tag)
|
phylo |
input phylo object |
node |
the node index from which to retrieve the tag |
tag |
the name of the tag to retrieve |
character string corresponding to the tag value, if exists; NA otherwise.
1 2 | tree <- tree.read('((a,b[&&NHX:foo=bar]),c);')
tree.get.tag(tree, tree.node.with.label(tree, 'b'), 'foo') # gives "bar"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.