Learn R Programming

mixAK (version 2.2)

plot.NMixPredDensMarg: Plot computed marginal predictive densities

Description

This is a basic plotting tool to visualize computed marginal predictive densities, see NMixPredDensMarg.

Usage

## S3 method for class 'NMixPredDensMarg':
plot(x, K=0, auto.layout=TRUE,
    type="l", col="darkblue", lty=1, lwd=1, main, xlab, ylab, \dots)

Arguments

x
an object of class NMixPredDensMarg.
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

auto.layout
if TRUE then the function determines itself how to divide the plotting region to draw densities for all margins.
type
type of the plot.
col
color used to draw the lines.
lty
type of the line.
lwd
line width.
main
main title of the plot. Either character which is replicated or a vector of characters of the length equal to the number of margins.
xlab
label for the x-axis. Either character which is replicated or a vector of characters of the length equal to the number of margins.
ylab
label for the y-axis. Either character which is replicated or a vector of characters of the length equal to the number of margins.
...
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

NMixPredDensMarg, 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