Skip to content
Prev 333173 / 398506 Next

polygon circling a graph

layout.fruchterman.reingold(g) returns a random result, so you
want to call it once and use the one return value.  Also, I think
you need to avoid the rescaling that plot.igraph does.  It looks
like you need to explicitly specify xlim and ylim if you do that,
but I may not have looked long enough at it.

   plot(g, layout=L, rescale=FALSE, xlim=range(L[,1]), ylim=range(L[,2]))
   polygon(L[temp1, ], col = "#0000FFAA")


Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com