plot.vblpcm: plot the posterior latent positions and groupings and network

View source: R/plot_network.R

plot.vblpcmR Documentation

plot the posterior latent positions and groupings and network

Description

Plot the network using the estimated positions with clustering. The nodes are plotted as pie-charts to show group membership probabilities. The group means are coloured crosses and the group standard deviations are shown with coloured circles.

Usage

## S3 method for class 'vblpcm'
plot(x, ..., R2 = 0.2, main = "Variational-Bayes Positions", 
                   alpha = 0.5, colours=1:x$G, RET=FALSE)

Arguments

x

The fitted values; output from vblpcmfit()

...

optional arguments to be passed to lower level functions

R2

scaling factor for the size of each node in the plot

main

main title for the plot

alpha

transparency of the links

colours

colours of the groups

RET

whether to return the 2D postions of nodes and clusters

Details

Plots the latent positions and clustering of a network fitted via vblpcmfit() or vblpcmstart()

Each node appears in the latent space as a pie chart with segments size proportional to group memberships. The clusters are represented as circles in the latent space centred on the expected position of the group mean and with size proportional to the cluster standard deviation.

If applicable, the size of the pie charts represents the expected sociality effect of the node.

Author(s)

Michael Salter-Townshend

See Also

latentnet::plot.ergmm


VBLPCM documentation built on March 31, 2023, 9:21 p.m.