Description Usage Arguments Details Value Author(s) See Also Examples
Given a result of function Mclust
applied on
several numeric vectors, this function plots the fitted
Gaussian on their histograms.
1 2 
mc 
A list consisting of outputs of function

A 
A data.frame of dimensions 'samples x components'. 
nbMix 
The number of Gaussian to be fitted. 
nbBreaks 
The number of breaks for the histogram. 
xlim 
xaxis limits to be used in the plot. 
pdf 
A pdf file. 
This function can only deal with at the most three Gaussian
A list of Mclust
results.
Anne Biton
1 2 3 4 5 6 7 8 9 10 11 12  A <matrix(c(c(rnorm(80,mean=0.5,sd=1),rnorm(80,mean=1,sd=0.2)),rnorm(160,mean=0.5,sd=1),
c(rnorm(80,mean=1,sd=0.3),rnorm(80,mean=0,sd=0.2))),ncol=3)
## apply function Mclust to each column of A
mc < apply(A,2,Mclust)
## plot the corresponding Gaussians on the histogram of each column
plotAllMix(mc=mc,A=A)
## apply function Mclust to each column of A, and impose the fit of two Gaussian (G=2)
mc < apply(A,2,Mclust,G=2)
## plot the corresponding Gaussians on the histogram of each column
plotAllMix(mc=mc,A=A)
## When arg 'mc' is missing, Mclust is applied by the function
plotAllMix(A=A)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.