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: Tamas Nepusz
Subject: Re: [igraph] About colors in communities plots
Date: Thu, 22 Mar 2012 15:15:56 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120310 Thunderbird/11.0

> 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.



reply via email to

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