Description Usage Arguments Value Author(s) See Also Examples
The function summarize a set of trees by calculating the proportion of each tree in the tree set.
1 |
trees |
a vector of tree strings |
name |
the species names |
trees |
a vector of tree |
prob |
the probability associated with each tree in the vector |
Liang Liu lliu@uga.edu
See Also as read.tree.nodes
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(phybase)
tree<-"(((H:0.005 , C:0.005 ) : 0.00025 #.01, G:0.00525):0.00025 #0.01 , O:0.0055) #.01;"
name<-species.name(tree)
nodematrix<-read.tree.nodes(tree,name)$nodes
rootnode<-7
seq<-rep(1,4)
nsim<-100
str<-rep(0,nsim)
for(i in 1:nsim){
str[i]<-sim.coaltree.sp(rootnode,nodematrix,4,seq,name=name)$gt
}
postdist.tree(str,name)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.