plotComm | R Documentation |
Graphical interactive representation of the network and its communities.
plotComm(graph, members)
graph |
The output of prepGraph. |
members |
A membership vector of the community structure, the output of membershipCommunities. |
Creates an interactive plot with colorful communities, a D3 JavaScript network graph.
my_file <- system.file("example/football.gml", package="robin")
graph <- prepGraph(file=my_file, file.format="gml")
members <- membershipCommunities (graph=graph, method="louvain")
plotComm(graph, members)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.