setPD {treeman} | R Documentation |
Return a tree with the phylogenetic diversity altered.
setPD(tree, val)
tree |
|
val |
new phylogenetic diversity |
Use this function to convert the phylogenetic diversity of a tree. For example, you might want to convert the tree so the sum of all branches is 1. This function will achieve that by modiyfing every branch, while maintaining their relative lengths.
setAge
https://github.com/DomBennett/treeman/wiki/set-methods
library(treeman) tree <- randTree(10) tree <- setPD(tree, val=1) summary(tree)