Description Usage Arguments Value
Sorts a data frame according to a tree. Requires the data
frame to have a 'node' column, which corresponds to the
index of each node in the tree. Not much error-checking
is done here, so be careful! Uses
order.nodes.visually
to sort nodes.
1 | sort.df.by.tree(tree.df, phylo)
|
tree.df, |
a data frame containing one row for each node in the tree. This data frame MUST contain a column labeled 'node', which contains, for each row, the index of the corresponding node in the tree. |
phylo, |
input phylo object |
data.frame, the data frame sorted according to the natural visual order of the tree .
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.