## Not run:
# data(Laurasiatherian)
# dm <- dist.logDet(Laurasiatherian)
# tree <- NJ(dm)
# # NJ
# set.seed(123)
# NJtrees <- bootstrap.phyDat(Laurasiatherian, FUN=function(x)NJ(dist.logDet(x)), bs=100)
# treeNJ <- plotBS(tree, NJtrees, "phylogram")
#
# # Maximum likelihood
# fit <- pml(tree, Laurasiatherian)
# fit <- optim.pml(fit, rearrangements="NNI")
# set.seed(123)
# bs <- bootstrap.pml(fit, bs=100, optNni=TRUE)
# treeBS <- plotBS(fit$tree,bs)
#
# # Maximum parsimony
# treeMP <- pratchet(Laurasiatherian)
# treeMP <- acctran(treeMP, Laurasiatherian)
# set.seed(123)
# BStrees <- bootstrap.phyDat(Laurasiatherian, pratchet, bs = 100)
# treeMP <- plotBS(treeMP, BStrees, "phylogram")
# add.scale.bar()
#
# # export tree with bootstrap values as node labels
# # write.tree(treeBS)
# ## End(Not run)
Run the code above in your browser using DataLab