]> git.donarmstrong.com Git - ape.git/blobdiff - R/plot.phylo.R
update for ape 2.1-2
[ape.git] / R / plot.phylo.R
index 6ab7a3e0b0dacbbb7065df0437a1a6fd9575fde7..3235300d08ff0ea0b9b2746565c9ecbde4f8c30e 100644 (file)
@@ -1,4 +1,4 @@
-## plot.phylo.R (2008-02-08)
+## plot.phylo.R (2008-02-28)
 
 ##   Plot Phylogenies
 
@@ -356,7 +356,7 @@ plot.phylo <- function(x, type = "phylogram", use.edge.length = TRUE,
               label.offset = label.offset, x.lim = x.lim, y.lim = y.lim,
               direction = direction, tip.color = tip.color,
               Ntip = Ntip, Nnode = Nnode)
-    assing("last_plot.phylo", c(L, list(edge = xe, xx = xx, yy = yy)),
+    assign("last_plot.phylo", c(L, list(edge = xe, xx = xx, yy = yy)),
            envir = .PlotPhyloEnv)
     invisible(L)
 }
@@ -515,5 +515,5 @@ plot.multiPhylo <- function(x, layout = 1, ...)
         par(ask = TRUE)
         on.exit(par(ask = FALSE))
     }
-    for (i in x) plot(i, ...)
+    for (i in 1:length(x)) plot(x[[i]], ...)
 }