Skip to content
Prev 301476 / 398503 Next

network plot problem

Hello,

As for the directed = FALSE, it works with me:

g <- graph(given, directed = FALSE)

As for the label, it's easy. Create an attribute 'name' and then set the 
label to that attribute. For instance, using the alphabet's letters, 
first uppercase.

V(g)$name <- c(LETTERS, letters)[V(g)]  # or any other names
V(g)$label <- V(g)$name

Keep 'name' and 'label' separate, like this you may change the label if 
needed but the name will still be there.
Then the plot functions recognise the label attribute.

Hope this helps,

Rui Barradas

Em 27-07-2012 11:37, Vlatka Matkovic Puljic escreveu: