powered by
Mclust
plotMix(mc, data, nbBreaks, traceDensity = TRUE, title = "", xlim, ylim, ...)
data
hist
## create a mix of two Gaussian v <-c(rnorm(80,mean=-0.5,sd=1),rnorm(80,mean=1,sd=0.2)) ## apply Mclust mc <- Mclust(v) ## plot fitted Gaussian on histogram of v plotMix(mc=mc,data=v,nbBreaks=30)
Run the code above in your browser using DataLab