| plot.net_mmm | R Documentation |
Plot Method for net_mmm
## S3 method for class 'net_mmm'
plot(x, type = c("posterior", "covariates"), ...)
x |
A |
type |
Character. Plot type: |
... |
Additional arguments (ignored). |
A ggplot object, invisibly.
seqs <- data.frame(V1 = sample(c("A","B","C"), 30, TRUE),
V2 = sample(c("A","B","C"), 30, TRUE))
mmm <- build_mmm(seqs, k = 2, n_starts = 1, max_iter = 10, seed = 1)
plot(mmm, type = "posterior")
set.seed(1)
seqs <- data.frame(
V1 = sample(c("A","B","C"), 30, TRUE),
V2 = sample(c("A","B","C"), 30, TRUE),
V3 = sample(c("A","B","C"), 30, TRUE)
)
mmm <- build_mmm(seqs, k = 2, n_starts = 5, seed = 1)
plot(mmm, type = "posterior")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.