Plot the simulated "true" values versus posterior estimates

plot_sim_estimated(
  x,
  parameters = NULL,
  estimate = "mean",
  uncertainty = c("q5", "q95"),
  alpha = 0.8
)

Arguments

x

object containing results (a data.frame or SBC_results() object).

parameters

parameters to show in the plot or NULL to show all

estimate

which estimate to use for the central tendency, must correspond a field already computed in the results (most likely "mean" and "median").

uncertainty

which estimates to use for uncertainty (a character vector of length 2) must correspond a field already computed in the results. Pass NULL to avoid showing uncertainty at all.

alpha

the alpha for the points and uncertainty intervals

Value

a ggplot2 plot object