For example, a plot a normal density over a histogram of conditional weighted residuals.
add_density(
fun = dnorm,
col = pm_opts$density.col,
lwd = pm_opts$density.lwd,
lty = pm_opts$density.lty,
...
)
layer_dnorm(x, sd = 1, mean = 0, ...)
passed to ggplot2::stat_function
passed to ggplot2::stat_function
passed to ggplot2::stat_function
passed to ggplot2::stat_function
passed to ggplot2::stat_function
a ggplot
object to which the density line will be added
passed to stats::dnorm
passed to stats::dnorm