% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mmm.R
\name{plot.net_mmm_clustering}
\alias{plot.net_mmm_clustering}
\title{Plot Method for MMM Clustering Attribute}
\usage{
\method{plot}{net_mmm_clustering}(
  x,
  type = c("posterior", "covariates", "predictors"),
  combined = TRUE,
  ...
)
}
\arguments{
\item{x}{A \code{net_mmm_clustering} object.}

\item{type}{Character. One of \code{"posterior"} (default; histogram of
max posterior probability per sequence, coloured by cluster),
\code{"covariates"} or its alias \code{"predictors"} (covariate
forest plot when \code{cluster_mmm()} was run with \code{covariates}).}

\item{combined}{Logical. For \code{type} in \code{"covariates"} or
\code{"predictors"} only: when \code{TRUE} (default), forest panels
are combined into a single faceted plot; when \code{FALSE}, a list
of separate ggplots is returned.}

\item{...}{Unsupported. Supplying unused arguments raises an error.}
}
\value{
A \code{ggplot} object, invisibly.
}
\description{
Plot routines for the MMM clustering metadata attached to a
\code{netobject_group} by \code{\link{cluster_mmm}} (or
\code{\link{cluster_network}} with \code{cluster_by = "mmm"}).
Mirrors the type-driven surface of
\code{\link{plot.net_clustering}} but covers only the metrics the EM
fit produces -- there is no distance matrix on an MMM clustering, so
\code{"silhouette"} / \code{"mds"} / \code{"heatmap"} aren't defined
here and the dispatcher raises a clear error if you ask for one of
those on an MMM result.
}
\examples{
\donttest{
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")
}
}
