Learn R Programming

mixAK (version 2.2)

tracePlots: Traceplots for selected parameters

Description

This function draws traceplots of selected parameters from the MCMC simulations ran using NMixMCMC or GLMM_MCMC functions.

Usage

tracePlots(x, ...)

## S3 method for class 'default': tracePlots(x, \dots)

## S3 method for class 'NMixMCMC': tracePlots(x, param=c("Emix", "SDmix", "Cormix", "K", "w", "mu", "sd", "gammaInv"), relabel=FALSE, order, auto.layout=TRUE, xlab="Iteration", ylab, col="slateblue", main="", ...)

## S3 method for class 'GLMM_MCMC': tracePlots(x, param=c("Deviance", "Cond.Deviance", "alpha", "Eb", "SDb", "Corb", "sigma_eps", "w_b", "mu_b", "sd_b", "gammaInv_b", "gammaInv_eps"), relabel=FALSE, order, auto.layout=TRUE, xlab="Iteration", ylab, col="slateblue", main="", ...)

Arguments

x
an object of class NMixMCMC or GLMM_MCMC.
param
a character string which specifies which sort of parameters is to be plotted. [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[obje
relabel
logical value. It indicates whether the chains with param being w, mu, sd, w_b, mu_b, sd_b should be re-labeled before plotting. Re-labelling is given b
order
a matrix with $K$ columns and $M$ rows where $M$ is the length of MCMC. Each row of order must be a permutation of $(1, \ldots, K)$.
auto.layout
logical value. If TRUE, the plotting region is automatically divided to produce traceplots of all parameters. Note that layout must be set up automatically if there are more than 28 parameters to be plotted (often the case for
xlab, ylab, col, main
arguments passed to plot function. They all can be of length one (the value is used on all plots) or of length equal to the number of parameters to be plotted.
...
other arguments passed to plot function.

Value

  • invisible(x)

See Also

NMixMCMC, GLMM_MCMC, NMixRelabel, traceplot.