> I am writing you to ask If do you know how could I
> choose the colors of the communities, in order to avoid two green
> communities, for example.
Use the "colbar" argument of plot(). It must be a vector of colors (in any
format that is accepted by R) and it must be exactly as long as the number
of communities. E.g.:

g <- graph.famous("zachary")
comm <- fastgreedy.community(g)
plot(comm, g, colbar=c("red", "green", "blue"))

-- 
T.

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to