Skip to contents

Plot homophily network where groups color nodes.

Usage

plot_homophilynet(net, node_size = 3, line_width = 0.1, theme_base_size = 10)

Arguments

net

Homophily network to plot.

node_size

Node size in plot.

line_width

Edge line width.

theme_base_size

Base font size to pass to ggplot theme.

Value

ggplot

Examples

hnet_5grp <- make_homophily_network(rep(5, 5), mean_degree = 2, homophily = -0.5)
plot_homophilynet(hnet_5grp)