View source: R/summaryStatistics.R
fillNodesDepth | R Documentation |
Fill the "depth" column of the node dataframe with corresponding depth. The depth is the number of edges between the node and the root. For instance, for the following simple phylogeny root—>—>B, depth(A) = 1 and depth(B) = 2 For more detail, see Saulnier et al., 2014, PLOS.
fillNodesDepth(df.nodes, phylo)
df.nodes |
dataframe created by |
phylo |
phylogeny (ape format) |
dataframe
createNodesDf
,
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.