Learn R Programming

BNPdensity (version 2023.3.8)

plot.PY1: Plot the density estimate and the 95% credible interval

Description

Plot the density estimate and the 95% credible interval

Usage

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

Value

A graph with the density estimate, the 95% credible interval and a histogram of the data

Arguments

x

A fitted object of class PY1

...

Further arguments to be passed to generic function, ignored at the moment

Examples

Run this code
data(acidity)
out <- MixPY1(acidity, Nit = 50)
plot(out)

Run the code above in your browser using DataLab