Skip to contents

Takes data returned by mclustBIC(), converts to a tibble for plotting.

Usage

ggmcbic(mc, cl = 1:nrow(mc), top = ncol(mc))

Arguments

mc

mclustBIC object

cl

subset of clusters to show

top

number to indicate how many models to show, default "all"

Value

mc_bic a ggplot object

Examples

require(mclust)
#> Loading required package: mclust
#> Package 'mclust' version 6.0.0
#> Type 'citation("mclust")' for citing this R package in publications.
data(clusters)
clusters_BIC <- mclustBIC(clusters[,1:5], G=2:6)
ggmcbic(clusters_BIC)

ggmcbic(clusters_BIC, top=4)


data(simple_clusters)
clusters_BIC <- mclustBIC(simple_clusters[,1:2])
ggmcbic(clusters_BIC, cl=2:5, top=3)
#> Warning: Removed 1 row containing missing values (`geom_line()`).