Learn R Programming

mixAK (version 2.2)

plot.NMixPredDensJoint2: Plot computed marginal pairwise bivariate predictive densities

Description

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

Usage

## 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, \dots)

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

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.

Value

  • 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, 3932--3947.

See Also

NMixPredDensJoint2, NMixMCMC.

Examples

Run this code
## See additional material available in 
## YOUR_R_DIR/library/mixAK/doc/
## or YOUR_R_DIR/site-library/mixAK/doc/
## - files Galaxy.pdf, Faithful.pdf, Tandmob.pdf

Run the code above in your browser using DataLab