plot: Plot a bayesplay object

plotR 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


ljcolling/bayesplay documentation built on March 21, 2022, 3:15 a.m.