plotPrior | R Documentation |
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",
...
)
mcmc |
A dataframe of the mcmc_out file from a |
expectedNumberOfShifts |
Expected number of shifts under the prior. |
burnin |
The fraction of samples to discard as burn-in. |
priorCol |
Color for the prior distribution. |
postCol |
Color for the posterior distribution. |
legendPos |
Placement of the legend, see |
... |
Additional parameters that are passed to
|
Invisibly returns a matrix with the probability of each shift number under the prior and the posterior.
Pascal Title
data(mcmc.whales)
plotPrior(mcmc.whales, expectedNumberOfShifts = 1, burnin = 0.15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.