Description Usage Arguments Value
This will create information for a Sankey diagram. The output is a dataframe: one column for the name of the starting node, one column for the flow from that node to the third column, the name of the ending node. If nodelabels exist, they will be used for node names, otherwise numbers will be used.
1 2 | convert_phylo_to_sankey(phy, tip.weights = NULL, erase.labels = FALSE,
convert.numbers = TRUE)
|
phy |
The tree in ape phylo format |
tip.weights |
Optionally a vector of the number of taxa each tip represents. If present, the final width matches this. It should have labels matching the taxon names |
erase.labels |
If TRUE, erase any node labels; otherwise, they will be used for naming nodes if present |
convert.numbers |
If TRUE, convert node numbers to labels if possible |
Data.frame with columns for source, value, and target
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.