| plot.net_mmm_clustering | R Documentation |
Plot routines for the MMM clustering metadata attached to a
netobject_group by cluster_mmm (or
cluster_network with cluster_by = "mmm").
Mirrors the type-driven surface of
plot.net_clustering but covers only the metrics the EM
fit produces – there is no distance matrix on an MMM clustering, so
"silhouette" / "mds" / "heatmap" aren't defined
here and the dispatcher raises a clear error if you ask for one of
those on an MMM result.
## S3 method for class 'net_mmm_clustering'
plot(
x,
type = c("posterior", "covariates", "predictors"),
combined = TRUE,
...
)
x |
A |
type |
Character. One of |
combined |
Logical. For |
... |
Unsupported. Supplying unused arguments raises an error. |
A ggplot object, invisibly.
seqs <- data.frame(V1 = sample(c("A","B","C"), 40, TRUE),
V2 = sample(c("A","B","C"), 40, TRUE))
grp <- cluster_mmm(seqs, k = 2, n_starts = 1, max_iter = 20, seed = 1)
plot(attr(grp, "clustering"), type = "posterior")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.