igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] About colors in communities plots


From: Charles Novaes de Santana
Subject: Re: [igraph] About colors in communities plots
Date: Thu, 22 Mar 2012 15:30:49 +0100

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 <address@hidden> 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
> address@hidden
> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]