Description Usage Arguments Value
Convert from a phylo object to a set of Source, Target, Value, Node Label for plotly sankey diagram convert data to data frame for use in plotly sankey diagram
1 | convert_phylo_to_plotly(phy, tip.weights = NULL, erase.labels = FALSE)
|
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 |
A list of links and nodes for sankey plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.