plot {bayesplay}R Documentation

Plot a bayesplay object

Description

Plots an object created by bayesplay

Usage

plot(x, ...)

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

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

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

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

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

Arguments

x

a likelihood, prior, posterior, product or predictive object #nolint

...

arguments passed to methods

add_prior

set to TRUE to add prior to the posterior plot

Value

a ggplo2 object


[Package bayesplay version 0.9.2 Index]