Learn R Programming

BayHap (version 1.0.1)

plotFreq: Plot acf, running mean, density functions and trace histories

Description

Displays plots of the autocorrelation function, the running mean, the density functions and the trace histories for the parameter(s) in the MCMC sequence. This function is suitable to plot objects of class freq.

Usage

plotFreq(res, acf = NULL, d = NULL, rmean = NULL, tr = NULL)

Arguments

res
An object of class freq.
acf,d,rmean,tr
If all these arguments are set to the default NULL, plotFreq will plot all the graphs (auctocorrelation, density, running mean and trace). To plot only one, two or three graphs, set one, two or three of these arguments as TRUE.

Value

Plots of autocorrelation functions, density functions, running mean and trace histories.

Details

To plot only one type of graph, you can also use the functions plotACF, plotRmean, plotTrace and plotDensity.

See Also

plotACF, plotTrace, plotRmean, plotDensity