Graphics / width of the border of the vertices in the graph of the graph R

I use igraph to plot in R, doing something like plot(mygraph, vertex.color = "green") .

Is there a way to change the color and / or width of the borders of the vertices?

+4
source share
3 answers

Check out the code below;

 plot(all, layout=All_layout, vertex.size=2, vertex.label=V(All)$name, vertex.color="green", vertex.frame.color="red", edge.color="grey", edge.arrow.size=0.01, rescale=TRUE,vertex.label=NA, vertex.label.dist=0.0, vertex.label.cex=0.5, add=FALSE, vertex.label.font=.001) 
+10
source

This message has expired. Look here for a solution that works for the current version of igraph (0.6.5).

+3
source

As Sean Mac wrote, the vertex border color can be changed using the vertex.frame.color parameter. It turns out that igraph does not provide the vertex.frame.width parameter, but the proposed solution here works fine for changing the border width.

+2
source

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


All Articles