Vertex border color/width in R graph plot

3lectrologos picture 3lectrologos · Mar 18, 2012 · Viewed 12k times · Source

I am using igraph for plotting a graph in R doing something like plot(mygraph, vertex.color = "green").

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

Answer

Sean Mc picture Sean Mc · Mar 18, 2012

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)