plot_ego_tergm: Function to plot role assignments.

Description Usage Arguments Value References Examples

Description

This function assists the user in interpreting output from the ego_tergm function.

Usage

1
2
plot_ego_tergm(ego_tergm_fit = NULL, plot_indices = NULL,
  node.size = 6, edge.size = 1, edge.color = "grey")

Arguments

ego_tergm_fit

The output from a fitted "ego_tergm".

plot_indices

A vector of indices reflecting the time steps that plots should be returned for. In networks observed over many time intervals it may be unrealistic to plot every network.

node.size

The size of the nodes fed to ggnet2.

edge.size

The size of the edges fed to ggnet2.

edge.color

The color of edges fed to ggnet2.

Value

A list of network plots with nodes colored by role assignment.

References

Campbell, Benjamin W. (2018): Inferring Latent Roles in Longitudinal Networks. Political Analysis 26(3): 292-311. https://doi.org/10.1017/pan.2018.20

Examples

1
2
3
plots <- plot_ego_tergm(ego_tergm_fit = ego_tergm_fit)
plots[[1]]
plots[[2]]

benjamin-w-campbell/egoTERGM documentation built on June 3, 2019, 5:56 p.m.