postdist.tree: Calculate posterior probabilities of trees

Description Usage Arguments Value Author(s) See Also Examples

Description

The function summarize a set of trees by calculating the proportion of each tree in the tree set.

Usage

1

Arguments

trees

a vector of tree strings

name

the species names

Value

trees

a vector of tree

prob

the probability associated with each tree in the vector tree

Author(s)

Liang Liu lliu@uga.edu

See Also

See Also as read.tree.nodes

Examples

 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)

bomeara/phybase documentation built on May 12, 2019, 11:35 p.m.