Learn R Programming

mixAK (version 2.2)

plot.NMixPlugCondDensMarg: Plot computed univariate conditional densities (plug-in estimate)

Description

This is a basic plotting tool to visualize computed plug-in estimates of univariate conditional densities, see NMixPlugCondDensMarg.

Usage

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

Arguments

x
an object of class NMixPlugCondDensMarg.
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.
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.
col
color used to draw the lines. It can be a vector in which case different lines are drawn in different colors.
lty
type of the line. It can be a vector in which case different lines are drawn in different types.
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

NMixPlugCondDensMarg, NMixMCMC.