Description Usage Arguments Value Examples
Reads a tree annotated with NHX-formatted annotations. A phylo object is returned, with annotations stored as tag-value lists. Several convenience functions are provided for accessing these annotations; see 'See Also' below.
1 | tree.read.nhx(str, coming.from.tree.read = F)
|
str, |
a string containing the NHX-formatted tree |
coming.from.tree.read, |
a boolean indicating
whether this function is being called from within the
|
phylo object containing the tree and associated annotations.
1 2 3 4 | str <- '((a,b[&&NHX:foo=bar]),c);'
x <- tree.read.nhx(str)
print(tree.get.tags(x, tree.find(x, 'b')))
print(as.character(x))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.