igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] circle shape


From: Tamas Nepusz
Subject: Re: [igraph] circle shape
Date: Wed, 09 Jan 2013 13:59:31 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

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



reply via email to

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