]> git.donarmstrong.com Git - ape.git/blobdiff - R/plot.phylo.R
final corrections for ape 3.0-6
[ape.git] / R / plot.phylo.R
index 862291de6ccd885bddeaa5a40f09a70f87a8a1ee..4c23c6f0032361e6c3b6181941cbfd4c83ad3f24 100644 (file)
@@ -1,4 +1,4 @@
-## plot.phylo.R (2012-10-02)
+## plot.phylo.R (2012-10-20)
 
 ##   Plot Phylogenies
 
@@ -18,8 +18,8 @@ plot.phylo <-
              tip.color = "black", plot = TRUE, rotate.tree = 0, ...)
 {
     Ntip <- length(x$tip.label)
-    if (Ntip == 1) {
-        warning("found only one tip in the tree")
+    if (Ntip < 2) {
+        warning("found less than 2 tips in the tree")
         return(NULL)
     }
     if (any(tabulate(x$edge[, 1]) == 1))
@@ -421,7 +421,7 @@ phylogram.plot <- function(edge, Ntip, Nnode, xx, yy, horizontal,
         yy <- xx
         xx <- tmp
     }
-    ## un trait vertical à chaque noeud...
+    ## un trait vertical a chaque noeud...
     x0v <- xx[nodes]
     y0v <- y1v <- numeric(Nnode)
     ## store the index of each node in the 1st column of edge: