Learn R Programming

mixAK (version 2.2)

plot.NMixPredCondDensMarg: Plot computed univariate conditional predictive densities

Description

This is a basic plotting tool to visualize computed posterior predictive estimates of univariate conditional densities, see NMixPredCondDensMarg.

Usage

## S3 method for class 'NMixPredCondDensMarg':
plot(x, ixcond, imargin, prob, over=FALSE,
    auto.layout=TRUE, type="l", lwd=1, lty, col, qlwd=1, qlty, qcol,
    main, xlab, ylab, ylim,
    annot=TRUE, \dots)

Arguments

x
an object of class NMixPredCondDensMarg.
ixcond
if given then conditional densities of all margins given x[[icond]][ixcond] are plotted where icond is taken from x.
imargin
if given then conditional densities of the imargin-th margin given all values of x[[icond]] are plotted - either separately or all in one plot.
prob
probabilities of pointwise posterior quantiles which should be added to the plot. Computed values of requested posterior quantiles must be present in the object x (see argument prob of
over
logical. If TRUE and imargin is given then all conditional densities are drawn in one plot.
auto.layout
if TRUE then the function determines itself how to divide the plotting region to draw the computed densities.
type
type of the plot.
lwd
line width.
lty
type of the line. It can be a vector in which case different lines are drawn in different types.
col
color used to draw the lines. It can be a vector in which case different lines are drawn in different colors.
qlwd
line width for pointwise posterior quantiles.
qlty
type of the line for pointwise posterior quantiles.
qcol
color used to draw pointwise posterior quantiles.
main
main title of the plot. Either character which is replicated or a vector of characters.
xlab
label for the x-axis. Either character which is replicated or a vector of characters.
ylab
label for the y-axis. Either character which is replicated or a vector of characters.
ylim
limits for the y-axis.
annot
if TRUE and imargin is given and over is TRUE then a legend is added to the plot.
...
additional arguments passed to the plot function.

Value

  • invisible(x)

See Also

NMixPredCondDensMarg, NMixMCMC.