[R] Changing shapes of some Nodes

lpupp lucagaegauf at gmx.ch
Wed Sep 11 03:01:01 CEST 2013


Hi,

I am using the "igraph" package to plot a network. I need most of the
vertices to be green and circular. A few selected vertices I need to change
to make them blue squares.

I created this loop to color the necessary nodes blue but I dont know how to
change their shapes:

for(i in projectionV.node) {
	base.net.node <- set.vertex.attribute(base.net.node, name="color",
index=which(V(base.net)$name==i), value=blue.color)
}

help is much appreciated!



--
View this message in context: http://r.789695.n4.nabble.com/Changing-shapes-of-some-Nodes-tp4675831.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list