plot.mmsbm | R Documentation |
The function provides a variety of plotting options for a fitted mmsbm
object.
## S3 method for class 'mmsbm'
plot(x, type = "groups", FX = NULL, node = NULL, ...)
x |
An object of class |
type |
character string denoting the type of plot. The default, " |
FX |
with |
node |
with |
... |
Currently ignored |
The requested plot object.
Santiago Olivella (olivella@unc.edu), Adeline Lo (aaylo@wisc.edu), Tyler Pratt (tyler.pratt@yale.edu), Kosuke Imai (imai@harvard.edu)
library(NetMix)
## Load datasets
data("lazega_dyadic")
data("lazega_monadic")
## Estimate model with 2 groups
lazega_mmsbm <- mmsbm(SocializeWith ~ Coworkers,
~ School + Practice + Status,
senderID = "Lawyer1",
receiverID = "Lawyer2",
nodeID = "Lawyer",
data.dyad = lazega_dyadic,
data.monad = lazega_monadic,
n.blocks = 2,
mmsbm.control = list(seed = 123,
conv_tol = 1e-2,
hessian = FALSE))
## Plot blockmodel as network
plot(lazega_mmsbm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.