R/plotHDI.R
plotHDI.Rd
Plots highest density interval (HDI) from (MCMC) samples and prints HDI in the R console. HDI is indicated by a red line. Based on John Kruschke's codes.
plotHDI(
sample = NULL,
credMass = 0.95,
Title = NULL,
xLab = "Value",
yLab = "Density",
fontSize = NULL,
binSize = 30,
...
)
MCMC samples
A scalar between 0 and 1, indicating the mass within the credible interval that is to be estimated.
Character value containing the main title for the plot
Character value containing the x label
Character value containing the y label
Integer value specifying the font size to be used for the plot labels
Integer value specifyin ghow wide the bars on the histogram should be. Defaults to 30.
Arguments that can be additionally supplied to geom_histogram
A vector containing the limits of the HDI