Having made said comment above, you can set the individual colors for each vertex with V()
.
Riffing off the pie igraph
example itself:
library(igraph)
g <- graph.ring(10)
values <- lapply(1:10, function(x) c(sample(1:10,3),0,0))
# make some unique bits
values[[7]][5] = 6
values[[9]][4] = 3
# default for all
V(g)$pie.color=list(heat.colors(5))
# make one stand out
V(g)[6]$pie.color=list(topo.colors(5))
# set.seed() keeps the vertices in the same place each plot
set.seed(1492)
plot(g,
vertex.shape="pie",
vertex.pie=values,
vertex.size=seq(10, 30, length=10),
vertex.label=NA)
It should be straightforward to adapt your needs with that sample.