Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Graph Visualization with igraph and R

I am trying to visualize graphs in R with the igraph package. I wish to visualize graphs with the edge size being between 2000 to 70,000. The plots look like this:

This is not a nice plot as you cannot see anything. I have figured out how to take away the labels, but still you cannot see anything since the vertices are so big.

  1. Can I remove the vertices and just look at the edges?

For example here is the same plot but I took the picture before it was finished. It seems that R only draws the edges before it is finished:

enter image description here

like image 910
CodeKingPlusPlus Avatar asked Jul 27 '13 22:07

CodeKingPlusPlus


1 Answers

You can set the vertex size to 0.

library(igraph)
g <- barabasi.game(100)
plot( g, vertex.size=0, vertex.label=NA, edge.arrow.size=0 )

Sample graph

like image 64
Vincent Zoonekynd Avatar answered Sep 30 '22 01:09

Vincent Zoonekynd