powered by
Produces trace plots, marginal densities and joint plots depending on the dimension of the parameter space.
visualize_results( samples, true_values = NULL, title = "Results", burnin_frac = 0.2, true_covariance = NULL, show_acf = TRUE )
Matrix of MCMC samples.
Optional vector of true parameter values.
Plot title.
Burn-in fraction.
Optional true covariance matrix.
Logical; whether to display autocorrelation plots.
log_post <- function(x) dnorm(x, log = TRUE) res <- twalk(log_post, n_iter = 2000, x0 = -2, xp0 = 2) visualize_results( res$all_samples, true_values = 0, title = "Standard normal" )
Run the code above in your browser using DataLab