R/cumplot.R
cumplot.Rd
Plot the cumulative median, mean, and 95% high posterior density region.
cumplot(x, ylab = NULL, burn = 0, thin = 1, hpd_level = 0.95)
An vector of MCMC draws.
An optional y-axis label.
Integer specifying the number of initial iterations to be discarded.
Integer specifying the thinning factor to be used on the MCMC steps.
Floating point specifying the desired HPD level.
A ggplot showing the cumulative mean, median and HPD.
x <- rnorm(1000)
cumplot(x)