igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Question on layout.drl .... What are the colors?


From: Gábor Csárdi
Subject: Re: [igraph] Question on layout.drl .... What are the colors?
Date: Thu, 12 Apr 2012 11:32:29 -0400

Peter,

vertex colors are used if the 'color' vertex attribute is present.
Edge colors are used if the 'color' edge attribute is present. Supply
'NA' to 'edge.color' and/or 'vertex.color' if you want to suppress the
'color' vertex/edge attribute.

Details are in ?igraph.plotting.

Gabor

On Tue, Apr 10, 2012 at 5:48 PM, Peter Flom
<address@hidden> wrote:
> Thanks!
>
> Are edges of directed graphs automatically given a color?
>
> Peter
>
> Peter Flom
> Peter Flom Consulting
> http://www.statisticalanalysisconsulting.com/
> http://www.IAmLearningDisabled.com
>
>
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden
> On Behalf Of Gábor Csárdi
> Sent: Tuesday, April 10, 2012 5:42 PM
> To: Help for igraph users
> Subject: Re: [igraph] Question on layout.drl .... What are the colors?
>
> On Tue, Apr 10, 2012 at 5:38 PM, Peter Flom
> <address@hidden> wrote:
>> Hello again
>>
>> Sorry to be asking so many questions!
>>
>> I have a connected component that I am trying to graph. When I run
>>
>> plot(component1, layout = layout.drl, vertex.size = 1, vertex.label =
>> NA, edge.arrow.size = .1)
>>
>> some of the links and nodes are blue, some are black. I didn't see
>> anything about this on the documentation for .drl, and the example
>> they give there shows up in all black.  Eventually, I will want to
>> change the colors of the nodes, but I am curious as to what is going
>> on
>
> Most probably your graph has a vertex attribute called 'color' and this is
> automatically used for plotting.
> If you don't want it, you can say plot(...., vertex.color="black", ...).
>
> See
> summary(component1)
> ?igraph.plotting
>
> G.
>
>> Thanks!
>>
>> Peter
>>
>>
>> _______________________________________________
>> igraph-help mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
>
> --
> Gabor Csardi <address@hidden>     MTA KFKI RMKI
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help



-- 
Gabor Csardi <address@hidden>     MTA KFKI RMKI



reply via email to

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