plot.MCMCc4photo: Plotting function for MCMCc4photo objects

Description Usage Arguments Details See Also

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.

Usage

1
2
3
4
  plot.MCMCc4photo(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.

Details

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

See Also

MCMCc4photo


serbinsh/biocro documentation built on May 29, 2019, 6:57 p.m.