Hi Liam,

perfect! Your right, I didn't realize that some species were duplicated.
Great to have the option in phytools!

All the best,
Jonas


2015-03-05 17:16 GMT+01:00 Liam J. Revell <liam.rev...@umb.edu>:

> Hi Jonas.
>
> I thought of the same thing. Unfortunately, one thing that I discovered is
> that because R automatically adds 4% or so to the plotting range, you will
> find that species & edges near the bottom of one page will also appear at
> the top of the next page. If you test your code & look for species or edges
> near the bottom or top of each page, you may find what I did.
>
> I have posted a solution to this here: http://blog.phytools.org/2015/
> 03/splitting-tree-over-mutiple-plotting.html. It uses plotTree from
> phytools internally, but it could fairly easily be modified to use other
> tree plotters such as plot.phylo or plotSimmap.
>
> All the best, Liam
>
> Liam J. Revell, Assistant Professor of Biology
> University of Massachusetts Boston
> web: http://faculty.umb.edu/liam.revell/
> email: liam.rev...@umb.edu
> blog: http://blog.phytools.org
>
> On 3/5/2015 5:19 AM, Jonas Eberle wrote:
>
>> MultipagePhyloPlot <- function (tree, npages = 5) {
>>    ntips <- length(tree$tip.label)
>>    tips.per.page <- ntips / npages
>>    y1 <- ntips - tips.per.page
>>    y2 <- ntips
>>    for (i in 1:npages) {
>>      plot.phylo(tree, y.lim = c(y1, y2))
>>      y1 <- y1 - tips.per.page
>>      y2 <- y2 - tips.per.page
>>    }
>> }
>>
>

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/

Reply via email to