powered by
Generates a barplot of the prior and posterior distributions of the number of shifts.
plotPrior( mcmc, expectedNumberOfShifts = 1, burnin = 0.15, priorCol = "light blue", postCol = "red", legendPos = "topright", ... )
Invisibly returns a matrix with the probability of each shift number under the prior and the posterior.
A dataframe of the mcmc_out file from a BAMM run, or the filename.
BAMM
Expected number of shifts under the prior.
The fraction of samples to discard as burn-in.
Color for the prior distribution.
Color for the posterior distribution.
Placement of the legend, see legend.
legend
Additional parameters that are passed to barplot.
barplot
Pascal Title
data(mcmc.whales) plotPrior(mcmc.whales, expectedNumberOfShifts = 1, burnin = 0.15)
Run the code above in your browser using DataLab