data(whales, events.whales)
ed <- getEventData(whales, events.whales, burnin = 0.1, nsamples = 500)
bftree <- marginalOddsRatioBranches(ed, expectedNumberOfShifts = 1)
margprobs <- marginalShiftProbsTree(ed)
plot.new()
par(mfcol = c(1,3))
# Original tree:
plot.phylo(whales, show.tip.label = FALSE)
mtext(side = 3, text = "original tree", cex = 1)
plot.phylo(margprobs, show.tip.label = FALSE)
mtext(side = 3, text = "Marginal probs", cex = 1)
plot.phylo(bftree, show.tip.label = FALSE)
mtext(side = 3, text = "Marginal odds ratio", cex = 1)Run the code above in your browser using DataLab