Hi again everyone,
After not being able to plot the subgraph via the code
right_size <- which(sizes(wc) < 8 & sizes(wc) > 1)
subg <- induced.subgraph(y, which(membership(wc) %in% right_size))
I found an alternative from an sna tutorial.
Below is code where I was able to get the indices for the communities of interest.
Is there a way I can plot the communities as a graph/subgraph from this index???
I am aware that I would have to convert it into a graph object, but I have not been successful in my attempts.
I want to do something as follows:
h <- comlist[bigComIndex]
newdata <- as.data.frame(h, header=F) ##Gives me an error (expects at least 2 columns)
graph.data.frame(newdata)##Gives me an error(not a graphical object)
Thanks in advance,