postHPDplot: Plot Marginal Posterior Distribution

View source: R/postHPDplot.R

postHPDplotR Documentation

Plot Marginal Posterior Distribution

Description

Plot marginal posterior distribution highlighting user-defined higher posterior density interval.

Usage

postHPDplot(
  x,
  prob = 0.9,
  bw = "SJ",
  hpd.col = "lightblue",
  line.col = "darkgrey",
  rnd = 3,
  HPD = TRUE,
  show.hpd.val = TRUE,
  ...
)

Arguments

x

Posterior samples

prob

Highest posterior density interval. Default is 0.9.

bw

The smoothing bandwidth to be used. See density for details. Default is "SJ".

hpd.col

Fill colour for the highest density interval. Default is 'lightblue'. Ignored when HPD is set to FALSE.

line.col

Line color for the density plot. Default is 'darkgrey'.

rnd

Integer indicating the number of decimal places to be used in the reporting of the highest posterior density interval.

HPD

Whether the highest posterior density interval is highlighted or not. Default is TRUE.

show.hpd.val

Whether the highest posterior density interval is displayed as subtitle. Default is TRUE.

...

other graphical parameters.

Value

None.


nimbleCarbon documentation built on Aug. 14, 2023, 5:08 p.m.