plot.posterior: Plot of a posterior object

Description Usage Arguments Author(s) Examples

Description

plot.posterior constructs a plot of the posterior density of one or two variables. For 2-parameter problems, a contour plot is produced.

Usage

1
2
## S3 method for class 'posterior'
plot(x, ...)

Arguments

x

posterior object

...

optional arguments; use exact=TRUE to plot the exact posterior density and the scale argument indicates the range of the axes of the plot

Author(s)

Jim Albert

Examples

1
2
3
4
5
data <- c(2,4,3,6,1,0,4,3,10,2)
par <- c(0,1)
datapar <- list(data=data,par=par)
fit <- laplace(logpoissnormal, 1, datapar)
plot(fit, exact=TRUE, scale=4)

bayesball/LearnBayes documentation built on May 11, 2019, 9:21 p.m.