RescaleTree: Rescale the branches of a phylogeny based on species...

Description Usage Arguments Details Value References See Also

View source: R/RescaleTree.R


Rescales the branches of the tree based on the abundance of all taxa that are descendant from each branch.


RescaleTree(phy,, rebuild = TRUE, scaled = FALSE)



An object of class phylo

A data frame with two columns. The first should contain species names which exactly match the species name in phy. The second column should be an integer or numeric value representing the abundance each species.


A logical indicating whether to rebuild phy if mismatches are found between the species names in and the species names in phy or if there are NAs and/or 0s in the abundance column.


A logical indicating whether to scale relative abundances to values between 0 and 100.


RescaleTree recomputes the length of each branch in the input phylogeny by dividing the length of the input branch by the sum of the abundances of all species that descend from that branch. By default, it will omit any species that have abundance values of 0 or NA, as it would be impossible to calculate the length for their terminal branches.


An object of class phylo


Cadotte et al 2010 AED find citation later when you have internet

See Also


levisc8/FocalPhylo documentation built on May 21, 2017, 12:35 p.m.