View source: R/community_plot.R
community_plot | R Documentation |
Generate a graphical representation of the communities and layers.
community_plot(x, ...)
x |
a |
... |
additional arguments from other methods |
This is an ancillary function that creates the plots seen in the manuscript, with a heatmap-style plot on the top panel, derived from a network adjacency matrix, and a community assignment plot on the bottom panel, separated by layer.
a gtable
object
link{hms}
data(SBM_net) # plot with max of two layers SBM_netcomm <- hms( input_net = SBM_net, spins = 4, alpha = 0, coolfact = 0.90, tol = 0.05, max_layers = 2 ) community_plot(SBM_netcomm) # plot with three layers # don't run automatically on CRAN; > 5 seconds SBM_netcomm <- hms( input_net = SBM_net, spins = 4, alpha = 0, coolfact = 0.90, tol = 0.05, max_layers = 3 ) community_plot(SBM_netcomm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.