sort.df.by.tree: Sorts a data frame according to a tree. Requires the data...

Description Usage Arguments Value

Description

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.

Usage

1
  sort.df.by.tree(tree.df, phylo)

Arguments

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

Value

data.frame, the data frame sorted according to the natural visual order of the tree .


gjuggler/ggphylo documentation built on May 17, 2019, 6:05 a.m.