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 <[email protected]> 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: igraph-help-bounces+peterflomconsulting=mindspring....@nongnu.org > [mailto:igraph-help-bounces+peterflomconsulting=mindspring....@nongnu.org] > 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 > <[email protected]> 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 >> [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 > > > _______________________________________________ > 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
