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 selectEM, which is an output of the function select.

leg.loc

the location of the legend, which is the same as the first argument of the function

...

other arguments passed to plot legend. The default value is "topright". The user can change its location (to "topleft", "bottom right" etc.) if the visual plot conflicts with the legend.

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

select

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]