Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

traceplot

Trace plot of MCMC output


Description

Displays a plot of iterations vs. sampled values for each variable in the chain, with a separate plot per variable.

Usage

traceplot(x, smooth = FALSE,
       col = 1:6, type = "l", xlab = "Iterations", ylab = "", ...)

Arguments

x

An mcmc or mcmc.list object

smooth

draw smooth line through trace plot

col

graphical parameter (see par)

type

graphical parameter (see plot)

xlab

graphical parameter (see plot)

ylab

graphical parameter (see plot)

...

further graphical parameters

Note

You can call this function directly, but it is more usually called by the plot.mcmc function.

See Also


coda

Output Analysis and Diagnostics for MCMC

v0.19-4
GPL (>= 2)
Authors
Martyn Plummer [aut, cre, trl], Nicky Best [aut], Kate Cowles [aut], Karen Vines [aut], Deepayan Sarkar [aut], Douglas Bates [aut], Russell Almond [aut], Arni Magnusson [aut]
Initial release
2020-09-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.