convert_phylo_to_sankey: Convert from a phylo object to a set of source, value, and...

Description Usage Arguments Value

Description

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.

Usage

1
2
convert_phylo_to_sankey(phy, tip.weights = NULL, erase.labels = FALSE,
  convert.numbers = TRUE)

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

convert.numbers

If TRUE, convert node numbers to labels if possible

Value

Data.frame with columns for source, value, and target


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