ggmcbic {mulgar} | R Documentation |
Produces an mclust summary plot with ggplot
Description
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)
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)
[Package mulgar version 1.0.2 Index]