Plot distributions using beans
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, ...)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.