plotMCMC: Plot results from posterior samples

Description Usage Arguments Value Author(s) See Also

View source: R/plotMCMC.R

Description

This function mainly saves relevant plots for posterior samples.

Usage

1
2
3
plotMCMC(MCMCoutputs, N, n, dir = getwd(), burnin = 2000, format = "pdf",
  width = 8, height = 6, weights_plot = TRUE, beta_plot = TRUE,
  beta_box = TRUE, chisq_plot = TRUE)

Arguments

MCMCoutputs

a list of r elements, where r is the number of EOFs specified, and each element is a list of 6 elements containing posterior quantities of parameters, log-likelihood, chisq statistics, and prior, which are the outputs from MCMC algorithm

N

an integer containing the number of ensemble memembers

n

an integer containing the number of grid cells

dir

a file path specifying where to save the plots

burnin

an integer specifying where the posterior samples have good mixing propertity

format

a character specifying the format of plots to be saved, e.g., "pdf", "png"

width

the width of the device (inches for .pdf plot and pixels for others)

height

the height of the device (inches for .pdf plot and pixels for others)

weights_plot

a logical value specifying whether the posterior plots of weights are saved

beta_plot

a logical value specifying whether the posterior plots of beta are saved

beta_box

a logical value specifying whether the box plots of posterior samples for beta are saved

chisq_plot

a logical value specifying whether the chisquare test plot is saved

Value

null

Author(s)

Pulong Ma <[email protected]>

See Also

parDAbayes


mapn/DAbayes documentation built on May 21, 2017, 5:47 p.m.