Learn R Programming

OrthoPanels (version 1.2-4)

plot.opm: Plot Method for an opm Object

Description

Method for plot applied to opm objects. Each parameter will be plotted as a density plot in a separate figure.

Usage

# S3 method for opm
plot(x, parm, ask = dev.interactive(), main = NULL, xlab = NULL, ...)

Arguments

x

an instance of class opm

parm

a specification of which parameters are to be plotted, either a vector of names ("rho", "sig2" and "beta" are the only legal values) or a vector of positional indices. If missing, all parameters are considered.

ask

if "TRUE", and the R session is interactive, the user is asked to press a key before a new figure (i.e., histogram of the next model parameter) is drawn.

main, xlab

(optional) vector of titles and X-axis labels for each figure.

...

further arguments passed to the plot function operating on the individual parameter's samples

Value

A list of objects of class "density", one for each requested model parameter. The elements are named after the parameter.