Creates a simple interactive network visualization that visually encodes node membership and type (if present) for a passed network.
visualize_network( sbm, node_shape_col = "type", node_color_col = "none", width = "100%", height = NULL )
sbm | Object of class |
---|---|
node_shape_col | Name of column in the |
node_color_col | Name of column in the |
width | Desired width for output widget. |
height | Desired height for output widget. |
Other visualizations:
visualize_collapse_results()
,
visualize_mcmc_trace()
,
visualize_propensity_dist()
,
visualize_propensity_network()
# Simulate a 3 block/cluster network with 15 nodes per block net <- sim_basic_block_network(n_blocks = 3, n_nodes_per_block = 15) # Visualize network with color encoding the blocks visualize_network(net) # Visualize network with shape encoding the true blocks visualize_network(net, node_shape_col = 'block') # Visualize network with color encoding the true blocks visualize_network(net, node_color_col = 'block')