briatte / ggnet

Network visualization with ggplot2
https://briatte.github.io/ggnet/
194 stars 33 forks source link

Isolates appearing in graphs with all nodes of degree >= 30 #19

Closed khanna7 closed 8 years ago

khanna7 commented 8 years ago

I am plotting a network where nodes with degree of at least 30 have been preselected. Yet the plot shows several isolates. How can that be?

summary(r0_net %v% "degree")
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
   30.0    38.0    52.0   403.8   493.0  4729.0 

  pdf(file="ggnet-ex.pdf")
  ggnet2(r0_net, color="color", size=2)
  dev.off()

ggnet-ex.pdf

khanna7 commented 8 years ago

This problem was with the data, not the program. Please ignore.

briatte commented 8 years ago

May I recommend that you give a try to ggnetwork? It's more powerful than ggnet2, and even closer to ggplot2 syntax.