Plotting function for MCMCc4photo objects

Usage

"plot"(x, x2 = NULL, x3 = NULL, plot.kind = c("trace", "density"), type = c("l", "p"), burnin = 1, cols = c("blue", "green", "purple"), prior = FALSE, pcol = "black", ...)

Arguments

x
MCMCc4photo object.
x2
optional additional MCMCc4photo object.
x3
optional additional MCMCc4photo object.
plot.kind
'trace' plots the iteration history and 'density' plots the kernel density.
type
only the options for line and point are offered.
burnin
this will remove part of the chain that can be considered burn-in period. The plots will no include this part.
cols
Argument to pass colors to the line or points being plotted.
prior
Whether to plot the prior density. It only works when x2 = NULL and x3 = NULL. Default is FALSE.
pcol
Color used for plotting the prior density.
...
Optional arguments.

Description

By default it prints the trace of the four parameters being estimated by the MCMCc4photo function. As an option the density can be plotted.

Details

This function uses internally xyplot, densityplot and panel.mathdensity both in the 'lattice' package.

See also

MCMCc4photo