plot.densityMclust {mclust}R Documentation

Plot Univariate Mclust Density

Description

Plot method for univariate data associated with the densityMclust function.

Usage

## S3 method for class 'densityMclust'
plot(x, data = NULL, ...)

Arguments

x

Output from densityMclust.

data

Optional data points to be highlighted on the density curve.

...

Graphics parameters for the plot function.

Details

For more flexibility in plotting, use mclust1Dplot,

Value

A density curve using the mixture model and range information from input x. If data is supplied, the positions of the corresponding data points will be shown on the horizontal axis.

References

C. Fraley and A. E. Raftery (2002). Model-based clustering, discriminant analysis, and density estimation. Journal of the American Statistical Association 97:611-631.

C. Fraley and A. E. Raftery (2006, revised 2010). MCLUST Version 3 for R: Normal Mixture Modeling and Model-Based Clustering, Technical Report no. 504, Department of Statistics, University of Washington.

See Also

densityMclust, mclust1Dplot

Examples

## Not run: 
plot(densityMclust(rivers))
plot(densityMclust(rivers), data = rivers, xlim = c(0,1500))

## End(Not run)

[Package mclust version 3.4.11 Index]