View source: R/plot.selectEM.R
| plot.selectEM | R Documentation |
selectEMThis function plots the result of mixture model selection by BIC.
## S3 method for class 'selectEM'
plot(x, leg.loc = "topright", ...)
x |
an object of class |
leg.loc |
the location of the legend, which is the same as the first argument of the function |
... |
other arguments passed to |
The function plot.selectEM is the plot method for the class selectEM. It plots
the number of components against the corresponding value of BIC. It is used to visually display
the mixture model selection result by BIC.
select
x <- rmixnormal(200, c(0.3, 0.7), c(2, 5), c(1, 1))
res <- select(x, ncomp = 1:3)
plot(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.