Usage
hdr.cde(den, prob = c(50, 95, 99), plot = TRUE, plot.modes = TRUE,
mden = rep(1, length(den$x)), threshold = 0.05, nn = 1000,
xlim, ylim, xlab, ylab, border=TRUE, font=1, cex=1, ...)
Arguments
den
Conditional density in the same format as the output from cde. prob
Probability coverage level for HDRs
plot
Should HDRs be plotted? If FALSE, results are returned.
plot.modes
Should modes be plotted as well as HDRs?
mden
Marginal density in the x direction. When small, the HDRs won't be plotted. Default is uniform so all HDRs are plotted.
threshold
Threshold for margin density. HDRs are not plotted if the margin density mden is lower than this value.
nn
Number of points to be sampled from each density when estimating the HDRs.
border
Show border of polygons
font
Font to be used in plot.
...
Other arguments passed to plotting functions.