Pair of bandwidths passed to either ash2 or kde. If missing,
a reasonable default is used.
show.points
If TRUE, will plot points over the top of contours.
xlab
Label for x-axis.
ylab
Label for y-axis.
kde.package
Package to be used in calculating the kernel density estimate.
shadecols
Colors for shaded regions
pointcol
Color for outliers and mode
xextend
Proportion of range of x. The density is estimated on a grid extended by xextend beyond the range of x.
yextend
Proportion of range of y. The density is estimated on a grid extended by yextend beyond the range of y.
...
Other arguments to be passed to plot.
Value
Some information about the HDRs is returned. See code for details.
Details
The density is estimated using kernel density estimation. Either ash2 or kde is used to
do the calculations. Then Hyndman's (1996) density quantile algorithm is used to compute the HDRs.
References
Hyndman, R.J. (1996) Computing and graphing highest density regions
American Statistician, 50, 120-126.