Reingold-Tilford layout broken in R?

Bug #1154105 reported by Gábor Csárdi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
igraph
Confirmed
Undecided
Unassigned

Bug Description

There seems to be a problem with plotting trees in our R-package igraph at
least since version 0.6.5-1.
Actually, the nodes of the tree are *not* plotted hierarchically but they
all are plotted on the same level.

When running the following lines of code with igraph version 0.6.0-3

library("igraph")
g<-graph.tree(20,2)
plot(g,layout=layout.reingold.tilford)
dev.copy2pdf(file="plot_tree_igraph_0.6.0-3.pdf")

I get the plot which is attached and called plot_tree_igraph_0.6.0-3.pdf .

With igraph of the current version 0.6.5-1 and running the same lines of
code, I get the plot called plot_tree_igraph_0.6.5-1.pdf.

My R-version is:
R version 2.15.3 (2013-03-01) -- "Security Blanket"
Copyright (C) 2013 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-pc-linux-gnu (64-bit)

I hope it is only a tiny bug that you can fix easily.
If you need more information, please let me know.

Best wishes,
André Gohr

Revision history for this message
Gábor Csárdi (gabor.csardi) wrote : Continue on github

The development of igraph has moved to github, so please do not comment on this bug here. You are of course welcome to comment on github, here:
https://github.com/igraph/igraph/issues/473

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.