Description Usage Arguments Details Author(s) References
Plot the posterior mean latent positions for G groups.
1 2 3 4 5 6 7 |
x |
An object of class |
... |
Additional arguments including. |
G |
The number of groups in the model to be plotted. Defaults to most visited in MCMC run. |
label.nodes |
A vector of labels to print beside corresponding nodes on the plot. |
pie |
Logical; Draw small pie charts to indicate group membership probabilities. |
vertex.col |
The colour for the slices of pie (previous). |
vertex.cex |
Magnify the vertex |
object.scale |
Scale up/down the size of the plotting of vertex and arrows. |
This function gives a plot of the latent positions for a given number of groups (assuming the model with the specified number of groups has been visited during the run of the sampler). If argument pie
is set to TRUE
, membership probabilities of the nodes are indicated by pie charts with each colour corresponding to a different group in the model. Some of the code to implement this function draws heavily on code contained in the latentnet
package (Krivitsky & Handcock, 2015).
Jason Wyse
Ryan, C., Wyse, J. and Friel, N. (2017). Bayesian model selection for the latent position cluster model for Social Networks. Network Science, volume 5, 70-91.
Krivitsky P and Handcock M (2015). latentnet: Latent Position and Cluster Models for Statistical Networks. The Statnet Project (http://www.statnet.org). R package version 2.7.1, http://CRAN.R-project.org/package=latentnet.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.