plot.mmp_prior {makemyprior}R Documentation

Plotting

Description

Plotting

Usage

## S3 method for class 'mmp_prior'
plot(x, ...)

## S3 method for class 'mmp_inla'
plot(x, ...)

## S3 method for class 'mmp_stan'
plot(x, ...)

Arguments

x

Object of class mmp_prior, mmp_inla or mmp_stan.

...

Additional arguments to plotting functions. Varies with what object is sent to function.

Details

See plot_prior (objects of class mmp_prior), plot_posterior_stan (objects of class mmp_stan), and plot_posterior_variance (objects of class mmp_inla),

Value

None.

Examples

pri <- makemyprior_example_model()
plot(pri)

if (interactive() && requireNamespace("rstan")){
  res_stan <- inference_stan(ex_prior, iter = 100)
  # Note: For reliable results, increase the number of iterations (e.g., 'iter = 2000')
  plot(res_stan)
}

if (interactive() && requireNamespace("INLA")){
  res_inla <- inference_inla(pri)
 plot(res_inla)
}


[Package makemyprior version 1.2.1 Index]