# NOT RUN {
## Index of Sackin of a PDA tree :
tpda<-rtreeshape(1,tip.number=70,model="pda")
tpda<-tpda[[1]]
sackin(tpda,norm="pda")
## Histogram of the Sackin's indices for randomly generated Yule trees,
## with no normalization
main="Histogram of Sackin's indices for randomly generated Yule trees"
xlab="Sackin's index"
hist(sapply(rtreeshape(300,tip.number=50,model="yule"),FUN=sackin,norm="yule"),
freq=FALSE, main=main, xlab=xlab)
## Change the size of the trees:
hist(sapply(rtreeshape(300,tip.number=100,model="yule"),FUN=sackin,norm="yule"),
freq=FALSE, main=main, xlab=xlab)
# }
Run the code above in your browser using DataLab