X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=R%2Fplot.phylo.R;h=3fd0637295d84063afd81cbe2bea7d5509bbe7d4;hb=bb212c8b0bb52b72923c0e9a6ec942b81c681a38;hp=32e5506903e412704b147b9e53705f68b4233f1a;hpb=46bc16a7531d871fccb6ea7c2a31d980aac21bd1;p=ape.git diff --git a/R/plot.phylo.R b/R/plot.phylo.R index 32e5506..3fd0637 100644 --- a/R/plot.phylo.R +++ b/R/plot.phylo.R @@ -1,8 +1,8 @@ -## plot.phylo.R (2011-12-03) +## plot.phylo.R (2012-03-22) ## Plot Phylogenies -## Copyright 2002-2011 Emmanuel Paradis +## Copyright 2002-2012 Emmanuel Paradis ## This file is part of the R-package `ape'. ## See the file ../COPYING for licensing issues. @@ -260,12 +260,12 @@ plot.phylo <- y.lim <- c(0, y.lim) if (phyloORclado && horizontal) y.lim[1] <- 1 if (type %in% c("fan", "unrooted") && show.tip.label) - y.lim[1] <- -max(nchar(x$tip.label) * 0.018 * max(yy) * cex) + y.lim[1] <- -max(nchar(x$tip.label) * 0.018 * max(yy) * cex) if (type == "radial") - y.lim[1] <- if (show.tip.label) -1 - max(nchar(x$tip.label) * 0.018 * max(yy) * cex) else -1 + y.lim[1] <- if (show.tip.label) -1 - max(nchar(x$tip.label) * 0.018 * max(yy) * cex) else -1 } ## mirror the yy: - if (phyloORclado && direction == "downwards") yy <- y.lim[2] - yy + if (phyloORclado && direction == "downwards") yy <- max(yy) - yy if (phyloORclado && root.edge) { if (direction == "leftwards") x.lim[2] <- x.lim[2] + x$root.edge if (direction == "downwards") y.lim[2] <- y.lim[2] + x$root.edge