Graphic visualization using igraph and R

I am trying to visualize graphs in R with the igraph package. I want to visualize graphs with edge sizes from 2000 to 70,000. The plots look like this:

This is not a good story because you do not see anything. I figured out how to remove the labels, but still you donโ€™t see anything, since the vertices are so big.

  • Is it possible to remove vertices and just look at the edges?

For example, here is the same plot, but I took a picture until it was finished. It seems that R only draws the edges until its completion:

enter image description here

+4
source share
1 answer

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

+9
source

Source: https://habr.com/ru/post/1493859/


All Articles