ggmcbic | R Documentation |
Takes data returned by mclustBIC()
, converts to a tibble
for plotting.
ggmcbic(mc, cl = 1:nrow(mc), top = ncol(mc))
mc |
mclustBIC object |
cl |
subset of clusters to show |
top |
number to indicate how many models to show, default "all" |
mc_bic a ggplot object
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.