rigraph icon indicating copy to clipboard operation
rigraph copied to clipboard

ggplot plotting engine

Open gaborcsardi opened this issue 10 years ago • 3 comments

From @gaborcsardi on October 16, 2014 23:6

To look at: http://is-r.tumblr.com/post/38459242505/beautiful-network-diagrams-with-ggplot2 http://chrischizinski.github.io/rstats/2014/04/04/igraph-ggplotll/ http://sumtxt.wordpress.com/2011/07/02/visualizing-networks-with-ggplot2-in-r/

Maybe in a separate package? It is high time to split things up.

Copied from original issue: igraph/igraph#735

gaborcsardi avatar Jan 14 '15 21:01 gaborcsardi

Having just stumbled upon this suggestion, I'd like to reference some code I wrote to plot networks with ggplot2: https://briatte.github.io/ggnet/ (the functions are published in the GGally package)

Right now, these functions use the network and sna packages to handle the network objects. However, there are lots of namespace conflicts between these two packages and igraph (discussion here). If igraph is more resilient to these issues, I might consider rewriting the code to use igraph instead.

briatte avatar Sep 18 '15 13:09 briatte

Also, ggraph :-)

thomasp85 avatar May 17 '17 07:05 thomasp85

Wow, old thread!

Three approaches to network viz with ggplot2 are documented here:

  • https://journal.r-project.org/archive/2017/RJ-2017-023/index.html
  • https://github.com/sctyner/ggnet-paper

The three approaches:

  • https://github.com/sctyner/geomnet
  • https://github.com/briatte/ggnet
  • https://github.com/briatte/ggnetwork

… but in my view, ggraph is a far superior approach:

  • https://github.com/thomasp85/ggraph

briatte avatar May 17 '17 17:05 briatte

Given the state of ggraph, I think we can safely close this as there is no need to implement this in igraph itself. Feel free to reopen if needed.

ntamas avatar Oct 29 '22 18:10 ntamas