Usage
hdr(x, prob = c(50, 95, 99), den, h=hdrbw(BoxCox(x,lambda),mean(prob)), lambda=1,
nn=5000, all.modes=FALSE)
hdr.den(x, prob = c(50, 95, 99), den, h=hdrbw(BoxCox(x,lambda),mean(prob)), lambda=1,
xlab=NULL, ylab="Density", ...)
hdr.boxplot(x, prob = c(99, 50), h=hdrbw(BoxCox(x,lambda),mean(prob)), lambda=1,
boxlabels = "", col = gray((9:1)/10), main="", xlab="", ylab="", pch=1, ...)Arguments
x
Numeric vector containing data. In hdr and hdr.den,
if x is missing then den must be provided, and the
HDR is computed from the given density.
For hdr.boxplot, x
prob
Probability coverage required for HDRs
den
Density of data as list with components x and y.
If omitted, the density is estimated from x using density. h
Optional bandwidth for calculation of density.
lambda
Box-Cox transformation parameter where 0 <= lambda="" <="1.=>
nn
Number of random numbers used in computing f-alpha quantiles.
all.modes
Return all local modes or just the global mode?
boxlabels
Label for each box plotted.
col
Colours for regions of each box.
main
Overall title for the plot.
...
Other arguments passed to plot.