jamesotto852 / ggdensity

An R package for interpretable visualizations of bivariate density estimates

Home Page:https://jamesotto852.github.io/ggdensity/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide additional computed variable `level`

jamesotto852 opened this issue · comments

Now that the computed variable for the HDR probability is called probs (4d80857), it might be good to provide the value of the density cutoffs corresponding to the each HDR via level. This would be consistent with ggplot2::geom_density2d(). This mostly seems relevant for pedagogical purposes -- being able to identify HDRs with the height of the density estimator may be useful in explaining how they are calculated and how the graphics are created.