plot: Plot a bayesplay object

plotR 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


bayesplay documentation built on April 14, 2023, 12:30 a.m.