plotHPDs: Plot distributions using beans

Description Usage Arguments

Description

Plot distributions using beans

Usage

1
2
3
4
5
6
7
8
9
plotHPDs(data, type = "beans", hpdlines = c(0.05, 0.5),
  linewidths = c(0.75, 1), maxwidth = 0.5, hpdonly = TRUE,
  showlimits = FALSE, plotmedian = TRUE, plothalf = FALSE,
  col = pal.dark(cblack), fill = pal.dark(cgray, 0.25),
  col.axis = NA, lwd = 1, add = FALSE, new = TRUE, xaxis = TRUE,
  yaxis = TRUE, xlab = "", ylab = "", xline = 1, yline = 1,
  xticks = NULL, yticks = NULL, xticklabels = NULL, ygrid = FALSE,
  xgrid = FALSE, gridcol = pal.light(cgray), ylims = NULL,
  cex.label = 1.4, cex.axis = 1, axispadding = 0, side = 2, ...)

Arguments

data

List with each element being a vector that represents a posterior sample Or a matrix, with each column being a posterior sample

type

One of 'simple', 'beans' or 'jellybeans'

hpdlines

Alpha values for HPDs to draw horizontal lines for (does not apply to type='jellybeans')

maxwidth

The maximum width of the HPD (does not apply to type='simple')

hpdonly

Only plot the biggest HPD in HPD lines

showlimits

Add the upper/lower limits to the margin for HPDs out of bounds


laduplessis/bdskytools documentation built on May 20, 2019, 7:33 p.m.