Thanks, Liam!
On Tue, Jun 13, 2017 at 12:48 PM Liam Revell <liam.rev...@umb.edu> wrote: > This is a bug that is related to how the function optimizes xlim to permit > space for the tip labels. By not showing tip labels, there is no > optimization, and thus no error. > > > > This doesn’t seem to create an issue for plotTree in phytools, which has > many of the same options (and some additional ones) as plot.phylo. > > > > -- > Liam J. Revell, Associate Professor of Biology > University of Massachusetts Boston > web: http://faculty.umb.edu/liam.revell > email: liam.rev...@umb.edu > > Sent from my Windows 10 phone > > > > *From: *Santiago Sánchez <santiago.snc...@gmail.com> > *Sent: *Tuesday, June 13, 2017 11:35 AM > *To: *r-sig-phylo@r-project.org > *Subject: *[R-sig-phylo] need finite 'xlim' values error with plot.phylo > > > Hello, > > I was wondering if there could be a bug in the plot.phylo code. I'm trying > to plot a tree which is scaled in yr units (less than 1 million years). > However I'm getting this error: > > Error in plot.window(...) : need finite 'xlim' values > > I tried rescaling to kyr and it plots well. Here is a sample test code: > > library(ape) > rtr <- rtree(50) > rtr$edge.length <- rtr$edge.length*100000 > plot(rtr) > rtr2 <- rtr > rtr2$edge.length <- rtr2$edge.length/1000 > plot(rtr2) > > Something interesting is that it will plot if I omit tip labels: > > plot(rtr, show.tip.label=F) > > Cheers, > Santiago > -- > ========================== > Santiago Sanchez-Ramirez, PhD > Postdoctoral Associate > Ecology and Evolutionary Biology > University of Toronto > ========================== > > [[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/ > -- ========================== Santiago Sanchez-Ramirez, PhD Postdoctoral Associate Ecology and Evolutionary Biology University of Toronto ========================== [[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/