Learn R Programming

brr (version 1.0.0)

plot.brr: plot brr

Description

plot brr

Usage

"plot"(x, what = "summary", bounds = NULL, ...)

Arguments

x
an object of class brr (see Brr)
what
"summary" to plot automatically the priors on mu and phi and the posterior on phi, or an expression like dprior(mu) for a specific plot (see examples)
bounds
for specific plot only, the range over which the function will be plotted; NULL for automatic bounds
...
other arguments passed to plot or barplot

Examples

Run this code
model <- Brr(a=2, b=3)
plot(model)
plot(model, dprior(mu))
plot(model, dprior(mu), xlim=c(0,4), lwd=3, col="blue")
plot(model, pprior(mu))
plot(model, qprior(mu))
model <- model(c=4, d=6, S=10, T=10)
plot(model)
plot(model, dprior(phi))
plot(model, dprior(x))
model <- model(y=4)
plot(model, dprior(x_given_y))
model <- model(x=5, y=5)
plot(model, dpost(phi))
model <- model(Snew=10, Tnew=10)
plot(model, dpost(x))

Run the code above in your browser using DataLab