View source: R/plot-mountains.R
Find optimal value from density curve
| 1 | get_optimal_value(dat, xlimits = c(0, max(dat$x)))
 | 
| dat | Dataframe resulting from any of the above density functions | 
| xlimits | Set prior for possible values | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.