Color pallette for vertices in igraph network in R
问题 I'm plotting network graph in R using `igraph1. The network has 1,380 nodes and about 150k edges. Here's the summary from igraph: IGRAPH UN-- 1380 159718 -- + attr: name (v/c), rels (v/n), label (v/n), degree (v/n), btw (v/n), color (v/c), rels (e/n) I'm trying to add a color gradient that colors the nodes based on their centrality. I've tried a couple of different versions code, first from this example: # calculate betweenness V(g_yearly)$btw <- betweenness(g_yearly) # construct color