This is a basic plotting tool to visualize computed plug-in estimates
of univariate conditional densities, see NMixPlugCondDensMarg
.
# S3 method for NMixPlugCondDensMarg
plot(x, ixcond, imargin, over=FALSE,
auto.layout=TRUE, type="l", lwd=1, lty, col, main, xlab, ylab, ylim,
annot=TRUE, ...)
invisible(x)
an object of class NMixPlugCondDensMarg
.
if given then conditional densities of all margins given x[[icond]][ixcond]
are plotted where
icond
is taken from x
.
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.
logical. If TRUE
and imargin
is given then
all conditional densities are drawn in one plot.
if TRUE
then the function determines itself
how to divide the plotting region to draw the computed densities.
type of the plot.
line width.
color used to draw the lines. It can be a vector in which case different lines are drawn in different colors.
type of the line. It can be a vector in which case different lines are drawn in different types.
main title of the plot. Either character which is replicated or a vector of characters.
label for the x-axis. Either character which is replicated or a vector of characters.
label for the y-axis. Either character which is replicated or a vector of characters.
limits for the y-axis.
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.
Arnošt Komárek arnost.komarek@mff.cuni.cz
NMixPlugCondDensMarg
, NMixMCMC
.