⚠️There's a newer version (3.4) of this package.Take me there.
hdrcde (version 3.1)
Highest density regions and conditional density estimation
Description
Computation of highest density regions in one and two dimensions,
kernel estimation of univariate density functions conditional on one covariate,
and multimodal regression.