R/rmeanplot1.R

Defines functions rmeanplot1

Documented in rmeanplot1

rmeanplot1 <- function(x, col=NULL, lty=1, style=c("gray", "plain"), ...){
    x <- convert.mcmc.list(lapply(x, function(mco) apply(mco, 2, function(y) cumsum(y)/seq_along(y))))
    traplot1(x=x, col=col, lty=lty, style=style, xlab="Iteration", ylab="Running mean", ...)
}

Try the mcmcplots package in your browser

Any scripts or data that you put into this service are public.

mcmcplots documentation built on May 29, 2017, 1:08 p.m.