R/plotTrace.R

Defines functions tracePlot

Documented in tracePlot

#' Trace plot for MCMC class
#' @param sampler an object of class MCMC sampler
#' @param thin determines the thinning intervall of the chain
#' @param ... additional parameters to pass on to the \code{\link{getSample}}, for example parametersOnly =F, or start = 1000
#' @export
#' @seealso \code{\link{marginalPlot}} \cr
#'          \code{\link{plotTimeSeries}} \cr
#'          \code{\link{correlationPlot}}
#' @example /inst/examples/tracePlotHelp.R
tracePlot <- function(sampler, thin = "auto", ...){
  codaChain = getSample(sampler, coda = T, thin = thin, ...)
  plot(codaChain)
}

Try the BayesianTools package in your browser

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

BayesianTools documentation built on Feb. 16, 2023, 8:44 p.m.