plot {bayesplay}R Documentation

Plot a bayesplay object

Description

Plots an object created by bayesplay

Usage

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

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

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

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

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

Arguments

x

a prediction 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


[Package bayesplay version 0.9.3 Index]