Plots an object created by bayesplay

# S3 method for prior
plot(x, ...)

# S3 method for posterior
plot(x, add_prior = FALSE, ...)

# S3 method for likelihood
plot(x, ...)

# S3 method for product
plot(x, ...)

# S3 method for prediction
plot(x, model_name = "model", ...)

# S3 method for robustness
plot(x, ...)

Arguments

x

a robustness object

...

arguments passed to methods

add_prior

set to TRUE to add prior to the posterior plot

model_name

name of the model

Value

a ggplot2 object