plot.selectEM {mixR} | R Documentation |
Plot Method for Class selectEM
Description
This function plots the result of mixture model selection by BIC.
Usage
## S3 method for class 'selectEM'
plot(x, leg.loc = "topright", ...)
Arguments
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 |
Details
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.
See Also
Examples
x <- rmixnormal(200, c(0.3, 0.7), c(2, 5), c(1, 1))
res <- select(x, ncomp = 1:3)
plot(res)
[Package mixR version 0.2.0 Index]