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

View source: R/MixPY2.R

plot.PY2R Documentation

Plot the density estimate and the 95% credible interval

Description

Plot the density estimate and the 95% credible interval

Usage

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

Arguments

x

A fitted object of class PY2

...

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

Value

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

Examples

data(acidity)
out <- MixPY2(acidity, Nit = 50)
plot(out)

BNPdensity documentation built on April 1, 2023, 12:10 a.m.