[R-sig-phylo] Plot size

2012-08-28 Thread Gwennaƫl Bataille
Dear R-sig-phylo users, I would like to rescale a large tree, but I am not an expert of graphs in R... My labels overlap with each other. And I would like to find an option to put more space between each branch, but could not find one. So I tried to resize the labels (playing with cex

Re: [R-sig-phylo] Plot size

2012-08-28 Thread Liam J. Revell
Hi Gwennael. I'm not totally sure I understand the problem, but this might help. You can use windows (in Windows) or dev.new to creating a plotting window with you desired dimensions. plot.phylo will then automatically rescale the branch lengths to fit. You can also control the font size

[R-sig-phylo] Alter the branch lengths of a Tree

2012-08-28 Thread Fernando Sobral
Hi, I am trying to alter the branch lengths of a phylogeny so that the smaller branch has size igual 1 and the larger branch is the proportional sum of the smaller branchs. For example, if the larger branch is equivalent to ten smaller branchs, it should have size igual to 10. I already tryed use

Re: [R-sig-phylo] Alter the branch lengths of a Tree

2012-08-28 Thread Liam J. Revell
Hi Fernando. I'm not entirely sure what you're going for, but let me try to be of some help. The tree is stored in memory as what is called a list - basically, a set of objects that can be of different types. The branch lengths of the tree are stored in the list element edge.length. So, for

[R-sig-phylo] Fwd: Alter the branch lengths of a Tree

2012-08-28 Thread Leandro Jones
Neither do I imagine what is Fernando going to do with this, but I think this is what he wants to do: F - rtree(10) # suppose this is Fernando's tree F$edge.length [1] 0.26509875 0.87023285 0.99953710 0.22727375 0.72152984 0.66757869 [7] 0.19363565 0.79213697 0.58417425 0.90608903 0.09822511