plot_hpd: plot_hpd: Plot highest posterior density intervals

View source: R/litterDiallel.R

plot_hpdR Documentation

plot_hpd: Plot highest posterior density intervals

Description

Plot HPD intervals. (From the BayesDiallel package, Will Valdar and Alan Lenarcic).

Usage

plot_hpd(
  coda.object,
  wanted = coda::varnames(coda.object),
  prob.wide = 0.95,
  prob.narrow = 0.5,
  xlab = "HPD interval",
  names = NULL,
  type = "p",
  name.margin = 6.1,
  plt.left = NULL,
  plt.right = NULL,
  plt.bottom = NULL,
  plt.title = NULL,
  ylab = "",
  name.line = 3.9,
  main = "",
  main.line = 2,
  ...
)

Arguments

coda.object

coda object

wanted

variable names for coda object

prob.wide

outer width of posterior probability

prob.narrow

inner width of posterior probability

xlab

x-axis label

names

names

type

type of plot

name.margin

margin for name

plt.left

left of plot margin

plt.right

right of plot margin

plt.bottom

bottom of plot margin

plt.title

title of plot margin

ylab

y-axis label

name.line

line where names should be printed

main

text of main title

main.line

line where main title should be printed

...

additional arguments

Value

returns HPD plot

Examples

## not run

mauriziopaul/litterDiallel documentation built on June 3, 2022, 12:39 a.m.