| postdist.tree {phybase} | R Documentation |
The function summarize a set of trees by calculating the proportion of each tree in the tree set.
postdist.tree(trees,name)
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 tree |
Liang Liu lliu@oeb.harvard.edu
See Also as read.tree.nodes
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)