R igraph: Color nodes by degree?
<pre><code># Erdos
par(mfrow=c(1,2))
g &lt;- erdos.renyi.game(100, 1/100)
V(g)$size&lt;-seq(0.05,5,0.05)
betweenness(g)

# Draw nodes and save positions
locs &lt;- layout.fruchterman.reingold(g)
plot(g, 
     layout=locs, 
     vertex.label=NA, 
     main="Original",
     vertex.color=degree(g))
g

vertex.color=degree(g)
</code></pre>

<p>did not work. Could anyone tell me how to color the vertices by "degree"?
Red (high value) to blue (low value) would be perfect.</p>

<p>Thanks!</p>