igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] circle shape


From: Gábor Csárdi
Subject: Re: [igraph] circle shape
Date: Fri, 11 Jan 2013 10:37:46 -0500

layout.graphopt() is broken, use another layout function, like layout.drl() or layout.fruchterman.reingold(), or even layout.auto().

Gabor


On Fri, Jan 11, 2013 at 6:10 AM, Biau David <address@hidden> wrote:
OK thanks.
 
first part works, second part (layout) no. It kindly ask me how I want to close R... but that'll do great for now. Thanks,
 
David Biau
De : Tamas Nepusz <address@hidden>
À : address@hidden
Envoyé le : Mercredi 9 janvier 2013 13h59
Objet : Re: [igraph] circle shape

> - I would like to tune the shape of circle vertices: i would like to remove
> the black line around the circles
Use vertex.frame.color=NA as an argument to plot().
See ?igraph.plotting for more details about the additional options you can
pass there.

> - I would like to be able to spread out the network as I like. FOr now, I
> cannot and because my network has many vertices, it seems too condensed.
igraph has quite a few layout algorithms that you can use; see ?layout for
more details. You can use these to calculate a layout for your graph and
then pass them to plot(). E.g.:

layout <- layout.graphopt(graph)
plot(graph, layout=layout)

By the way, the result of the layout function is "just" a matrix with X-Y
coordinates in each row, so you can do with them whatever you want to make
your layout more pleasant. You can also use tkplot() to get an interactive
plot where you can drag the nodes around to get a suitable arrangement.

Cheers,
Tamas

_______________________________________________
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]