[Top][All Lists]

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

Re: [igraph] combine 2 plots - one network and one phylogenetic tree wit

From: Gábor Csárdi
Subject: Re: [igraph] combine 2 plots - one network and one phylogenetic tree with R
Date: Wed, 20 Jun 2012 11:35:47 -0400


On Wed, Jun 20, 2012 at 11:21 AM, Augusto Ribas <address@hidden> wrote:
> #but i would like to make this:
> #something like this draw:
> http://oi47.tinypic.com/2j2szcy.jpg
> so instead the plotweb for the network plot, i would like to use
> plot.igraph()
> But is there some simple way, like a layout that would make it?
> Hope i'm not confuseing everything.

First of all, you can make use of the 'rescale' argument of
plot.igraph, to make sure that the layout that you supply is not

To get the layout itself, you'll need to fix some x and y coordinates
for the vertices. This can be done with layout.fruchterman.reingold,
and the 'minx', 'miny', 'maxx', etc. arguments. Basically you'll need
to fix all the 'y' coordinates and the 'x' coordinates of the top row,

If the automatic layout is not good enough, you can update it by hand,
e.g. by plotting it via tkplot() first, adjusting it, and then calling
tkplot.getcoords() to get the coordinates.

This'll require some experimenting, but it should be possible.



reply via email to

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