# introduce "scale" variable to shrink denisty to fit in the vertical plot range
scaled_dnorm <- function(theta, mean = 4, sd = 1, log = TRUE, scale = 1) {
tmp <- stats::dnorm(theta, mean, sd)
if (log) {
tmp <- log(tmp)
}
return(scale * tmp)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.