Learn R Programming

EmpiricalCalibration (version 3.1.4)

plotMcmcTrace: Plot the MCMC trace

Description

Plot the MCMC trace

Usage

plotMcmcTrace(mcmcNull, fileName = NULL)

Arguments

mcmcNull

An object of type mcmcNull as generated using the fitMcmcNull function.

fileName

Name of the file where the plot should be saved, for example 'plot.png'. See the function ggsave in the ggplot2 package for supported file formats.

Details

Plot the trace of the MCMC for diagnostics purposes.

Examples

Run this code
if (FALSE) {
data(sccs)
negatives <- sccs[sccs$groundTruth == 0, ]
null <- fitMcmcNull(negatives$logRr, negatives$seLogRr)
plotMcmcTrace(null)
}

Run the code above in your browser using DataLab