docnet = docnet
dtm = rnewsflow_dfm
docnet_comps = igraph::decompose.graph(docnet) # get subcomponents
# subcomponent 1
document.network.plot(docnet_comps[[1]])
# subcomponent 2 with wordcloud
document.network.plot(docnet_comps[[2]], dtm=dtm)
# subcomponent 3 with additional arguments passed to plot.igraph
document.network.plot(docnet_comps[[3]], dtm=dtm, vertex.color='red')
Run the code above in your browser using DataLab