convert_phylo_to_plotly: Convert from a phylo object to a set of Source, Target,...

Description Usage Arguments Value

Description

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

Usage

1
convert_phylo_to_plotly(phy, tip.weights = NULL, erase.labels = FALSE)

Arguments

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

Value

A list of links and nodes for sankey plot


bomeara/santree documentation built on May 30, 2019, 1:21 p.m.