Thanks a lot!

so, to do exactly like the plot.communities does, I just need to "add"
transparency to the colors of the shadows, like this:

karate<-graph.famous("Zachary");
wc<-fastgreedy.community(g)
plot(wc, karate, colbar=c("#FF0000", "#00FF00",
"#FFFF00"),mark.col=c("#FF000055", "#00FF0055", "#FFFF0055"))

still simple, still beautiful! Very good!

All the best,

Charles

On Thu, Mar 22, 2012 at 5:57 PM, Gábor Csárdi <[email protected]> wrote:
> On Thu, Mar 22, 2012 at 10:37 AM, Tamas Nepusz <[email protected]> wrote:
>>
>>> 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.
>> Ah, I understand. I agree, it would be nice if that could be controlled as
>> well, but I don't know whether plot.communities has an option for that or
>> not. Gabor?
>
> 'mark.col' defines the colors of the shadows and 'col' the colors of
> the vertices. E.g.:
>
> karate <- graph.famous("Zachary")
> wc <- walktrap.community(karate)
> plot(wc, karate, mark.col=heat.colors(length(wc)),
> col=rainbow(length(wc))[membership(wc)])
>
> G.
>
>> --
>> T.
>>
>> _______________________________________________
>> igraph-help mailing list
>> [email protected]
>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
>
> --
> Gabor Csardi <[email protected]>     MTA KFKI RMKI
>
> _______________________________________________
> 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