fit {bacon} | R Documentation |
Method to plot mixture fit
fit(object, index = 1, ...) ## S4 method for signature 'Bacon' fit(object, index, col = "grey75", border = "grey75", ...)
object |
'bacon'-object |
index |
if multiple sets of test-statsistics where provided |
... |
additional plotting parameters |
col |
line color default 'grey75' |
border |
border color 'grey75' |
plot of the Gibbs Sampler mixture fit
y <- rnormmix(2000, c(0.9, 0, 1, 0, 4, 1)) ##nbins = 100 to speed up the calculations bc <- bacon(y, nbins=100) fit(bc)