Skip to content
Prev 169173 / 398506 Next

igraph: error when setting size and shape of vertices

Yep, this is a bug, thanks for reporting it. It only happens with the
square shape, so until it is a corrected, a workaround is using
"rectangle" shape, with equal vertical and horizontal sizes:

g <- graph.ring(4)
g$layout <- layout.circle
V(g)$size <- seq_len(vcount(g)) * 10
V(g)$size2 <- V(g)$size

plot(g, vertex.shape="square")       # gives an error
plot(g, vertex.shape="rectangle")    #  works

I have tried this only on the not-yet-released 0.6 version, please
tell me if it does not work on 0.5.1.

Best,
Gabor
On Wed, Feb 4, 2009 at 11:26 AM, <robbie.heremans at telenet.be> wrote: