This is a basic plotting tool to visualize computed plug-in estimates
of pairwise bivariate conditional densities using the
image
or contour
plot.
See also NMixPlugCondDensJoint2
.
# S3 method for NMixPlugCondDensJoint2
plot(x, ixcond, imargin,
contour=FALSE,
add.contour=TRUE, col.add.contour="brown",
auto.layout=TRUE,
col, lwd=1, main, xylab, ...)
invisible(x)
an object of class NMixPlugCondDensJoint2
.
if given then conditional densities of all pairs of margins given x[[icond]][ixcond]
are plotted where
icond
is taken from x
.
vector of length 2.
if given then conditional densities of the (imargin[1]
,
imargin[2]
) pair of margins given all values of x[[icond]]
are plotted.
logical. If TRUE
then contours are drawn,
otherwise image plot is created.
logical. If TRUE
and contour
is
FALSE
(i.e., image plot is drawn) then contours are added to
the image plots.
color of contours which are added to the image plot.
if TRUE
then the function determines itself
how to divide the plotting region to draw densities for all margins.
color used to draw the contours or images.
line width.
main title of the plot.
optional character vector of the length equal to the number of margins with labels used for x and y axes on the plots.
additional arguments passed to the plot
function.
Arnošt Komárek arnost.komarek@mff.cuni.cz
NMixPlugCondDensJoint2
, NMixMCMC
.