igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Igraph layout


From: Gábor Csárdi
Subject: Re: [igraph] Igraph layout
Date: Wed, 9 Dec 2009 19:17:28 +0100

On Wed, Dec 9, 2009 at 4:04 PM, Knut Krueger <address@hidden> wrote:
> Gábor Csárdi schrieb:
>>
>> Hi, why don't you just store the first layout and use it twice?
>>
>> mylay <- layout.fruchterman.reingold(mygraph)
>> plot(mygraph, layout=mylay)
>>
>
> Hi Gábor
> Because I need one with white edges and arrows and one comlete with black
> once, for a presentation

I don't understand this. What is wrong with the following?

library(igraph)
mygraph <- ba.game(20)
mylay <- layout.fruchterman.reingold(mygraph)
x11()
plot(mygraph, layout=mylay, edge.color="black")
x11()
par(bg="black")
plot(mygraph, layout=mylay, edge.color="white")

Gabor

> But I think  tkplot is the solution for that.
> By the way the package is great
>
> Kind regards Knut
>
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>



-- 
Gabor Csardi <address@hidden>     UNIL DGM




reply via email to

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