Thanks Tamas,

That is good and easy! But I was thinking that If I change the colors
of the vertices, so the color of the "shadows" surrounding the
communities would change too. For example, when I do:

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

I have yellow vertices inside a blue community. Do you know if there
is a parameter to change the shadows too?

Thanks again!

Charles

On Thu, Mar 22, 2012 at 3:15 PM, Tamas Nepusz <[email protected]> wrote:
>> 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



-- 
Um axé! :)

--
Charles Novaes de Santana
http://www.imedea.uib-csic.es/~charles
PhD student - Global Change
Laboratorio Internacional de Cambio Global
Department of Global Change Research
Instituto Mediterráneo de Estudios Avanzados(CSIC/UIB)
Calle Miquel Marques 21, 07190
Esporles - Islas Baleares - España

Office phone - +34 971 610 896
Cell phone - +34 660 207 940

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

Reply via email to