plot.NMixPredDensJoint2 function

Plot computed marginal pairwise bivariate predictive densities

Plot computed marginal pairwise bivariate predictive densities

This is a basic plotting tool to visualize computed marginal pairwise bivariate predictive densities using the image plot or contour

plot. See also NMixPredDensJoint2.

## S3 method for class 'NMixPredDensJoint2' plot(x, K=0, contour=FALSE, add.contour=TRUE, col.add.contour="brown", auto.layout=TRUE, col, lwd=1, main, xylab, ...)

Arguments

  • x: an object of class NMixPredDensJoint2.

  • K: if equal to 0 then the overall predictive densities are plotted taken from the dens part of the object x.

    If higher than 0 then the predictive density conditioned by the value of K is plotted (taken from the densK part of the object x).

  • contour: logical. If TRUE then contours are drawn, otherwise image plot is created.

  • add.contour: logical. If TRUE and contour is FALSE (i.e., image plot is drawn) then contours are added to the image plots.

  • col.add.contour: color of contours which are added to the image plot.

  • auto.layout: if TRUE then the function determines itself how to divide the plotting region to draw densities for all margins.

  • col: color used to draw the contours or images.

  • lwd: line width.

  • main: main title of the plot.

  • xylab: 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.

Returns

invisible(x)

References

Komárek, A. (2009). A new R package for Bayesian estimation of multivariate normal mixtures allowing for selection of the number of components and interval-censored data. Computational Statistics and Data Analysis, 53 (12), 3932--3947.

See Also

NMixPredDensJoint2, NMixMCMC.

Author(s)

Arnošt Komárek arnost.komarek@mff.cuni.cz

Examples

## See additional material available in ## YOUR_R_DIR/library/mixAK/doc/ ## or YOUR_R_DIR/site-library/mixAK/doc/ ## - files Galaxy.R, Faithful.R, Tandmob.R and ## http://www.karlin.mff.cuni.cz/~komarek/software/mixAK/Galaxy.pdf ## http://www.karlin.mff.cuni.cz/~komarek/software/mixAK/Faithful.pdf ## http://www.karlin.mff.cuni.cz/~komarek/software/mixAK/Tandmob.pdf