Learn R Programming

mclust (version 3.4.7)

plot.densityMclust: 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, \ldots)

Arguments

x
Output from densityMclust.
data
Optional data points to be highlighted on the density curve.
...
Graphics parameters for the plot function.

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.

Details

For more flexibility in plotting, use mclust1Dplot,

See Also

densityMclust, mclust1Dplot

Examples

Run this code
plot(densityMclust(rivers))
plot(densityMclust(rivers), data = rivers, xlim = c(0,1500))

Run the code above in your browser using DataLab