Closed pcdjohnson closed 9 years ago
It looks like the igraph layout problems I was having were due to having not loaded igraph separately (which I would have done had I followed the tutorial more closely). It can be seen from the session info output above that igraph is not attached. All the igraph functions appear still to be available, presumably via one of the loaded packages, but the deprecated layout functions (layout.circle, etc) only work if igraph is loaded directly.
The other problem mentioned above, trying to supply layout coordinates...
transGraph(res, thres=0.5, plot.layout = data.frame(x = x, y = y))
...still gives an error, even when igraph is loaded separately, but the following does work:
plot(g, layout = cbind(x = x, y = y))
(where g is an igraph object created by transGraph) regardless of whether or not igraph was loaded separately. This behaviour is as described at ?igraph.plotting.
In summary, as far as I'm concerned there is no longer a problem. Sorry for any confusion.
Cool, thanks for the correction. Sorry for not being more reactive - teaching times.
outbreaker's development is back on the agenda though; new things coming for early 2016
On Tue, Sep 22, 2015 at 12:54 PM, pcdjohnson notifications@github.com wrote:
It looks like the igraph layout problems I was having were due to having not loaded igraph separately (which I would have done had I followed the tutorial more closely). It can be seen from the session info output above that igraph is not attached. All the igraph functions appear still to be available, presumably via one of the loaded packages, but the deprecated layout functions (layout.circle, etc) only work if igraph is loaded directly.
The other problem mentioned above, trying to supply layout coordinates... transGraph(res, thres=0.5, plot.layout = data.frame(x = x, y = y)) ...still gives an error, even when igraph is loaded separately, but the following does work: plot(g, layout = cbind(x = x, y = y)) (where g is an igraph object created by transGraph) regardless of whether or not igraph was loaded separately. This behaviour is as described at ?igraph.plotting.
In summary, as far as I'm concerned there is no longer a problem. Sorry for any confusion.
— Reply to this email directly or view it on GitHub https://github.com/thibautjombart/outbreaker/issues/2#issuecomment-142264810 .
Layout options in transGraph and plot.igraph are generating errors. From the introduction to outbreaker: https://sites.google.com/site/therepiproject/outbreaker-intro.pdf?attredirects=0
Adapted from the introduction:
I think this is because the current version of igraph has deprecated some layout functions:
I'm not sure whether these are issues for transGraph, or whether I just need to learn how to use the new layout options in igraph. Simply replacing
layout=layout.circle
withlayout=layout_in_circle
doesn't work.I'm running outbreaker 1.1-6 and igraph 1.0.1 on R 3.2.2. Full session info: