Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top