Description Usage Arguments Details Value Author(s) See Also Examples
write a tree or a sub-tree into a string in parenthetical format
1 | write.subtree(inode, nodematrix,taxaname,root)
|
inode |
the root node of a sub-tree |
nodematrix |
a tree node matrix |
taxaname |
taxa names |
root |
the root node of a sub-tree |
If inode is the root of the tree, the function will write the whole tree into a string in parenthetical format. If inode is not the root node, the function will write the sub-tree into a string. The function works for both rooted trees and unrooted trees.
The function returns a tree string in parenthetical format
Liang Liu lliu@uga.edu
write.tree.string
, read.tree.nodes
1 2 3 4 5 | data(rooted.tree)
tree<-read.tree.nodes(rooted.tree[1])
tree$nodes
tree$names
write.subtree(7,tree$nodes,tree$names,7)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.