plot_gibbs_output: Plots the diagnostic plots of the posterior distribution.

View source: R/plots.R

plot_gibbs_outputR Documentation

Plots the diagnostic plots of the posterior distribution.

Description

Plots the diagnostic plots of the posterior distribution.

Usage

plot_gibbs_output(
  path = NULL,
  draws,
  parName,
  burnin,
  mu = NULL,
  prec = NULL,
  shape = NULL,
  scale = NULL,
  shape1 = NULL,
  shape2 = NULL,
  ub = NULL,
  lb = NULL,
  prefix = NULL,
  device,
  width,
  height
)

Arguments

path

An optional file path. If specified, the plots will be saved using the format in device under the given path.

draws

the number of draws.

parName

the name of the parameter.

burnin

length of thw burnin phase.

mu

mean for normal distribution

prec

precision for normal distribution

shape

shape for Gamma distribution

scale

scale for Gamma distribution

shape1

shape1 for Beta distribution

shape2

shape2 for Beta distribution

ub

upper bound

lb

lower bound

prefix

An optional character string to be added to the names of the plots in case path is specified.

device

Device passed on to ggplot for plot saving. Options are "eps", "ps", "tex" (pictex), "pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf".

width

The plot width in case of printing.

height

The plot height in case of printing.


RGAP documentation built on Nov. 2, 2023, 6:02 p.m.