View source: R/Plotting_Functions.R
MoE_Similarity | R Documentation |
Produces a heatmap of the similarity matrix constructed from the res$z
matrix at convergence of a MoEClust mixture model.
MoE_Similarity(res,
col = grDevices::heat.colors(30L, rev=TRUE),
reorder = TRUE,
legend = TRUE,
...)
res |
An object of class |
col |
A vector of colours as per |
reorder |
A logical (defaults to |
legend |
A logical (defaults to |
... |
Catches unused arguments, or arguments to be passed to |
The similarity matrix in the form of a heatmap is plotted; the matrix itself can also be returned invisibly. The invisibly returned matrix will also be reordered if reordered=TRUE
.
plot.MoEClust
is a wrapper to MoE_Similarity
which accepts the default arguments, and also produces other types of plots.
Keefe Murphy - <keefe.murphy@mu.ie>
MoE_clust
, plot.MoEClust
,
data(ais)
mod <- MoE_clust(ais[,3:7], G=2, modelNames="EEE", gating= ~ SSF + Ht,
expert= ~ sex, network.data=ais, tau0=0.1, noise.gate=FALSE)
sim <- MoE_Similarity(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.