Package: ape
Version: 3.0-6
-Date: 2012-10-12
+Date: 2012-10-20
Title: Analyses of Phylogenetics and Evolution
Author: Emmanuel Paradis, Ben Bolker, Julien Claude, Hoa Sien Cuong, Richard Desper, Benoit Durand, Julien Dutheil, Olivier Gascuel, Christoph Heibl, Daniel Lawson, Vincent Lefort, Pierre Legendre, Jim Lemon, Yvonnick Noel, Johan Nylander, Rainer Opgen-Rhein, Andrei-Alin Popescu, Klaus Schliep, Korbinian Strimmer, Damien de Vienne
Maintainer: Emmanuel Paradis <Emmanuel.Paradis@ird.fr>
o The three new functions node.depth.edgelength, node.height, and
node.height.clado make some internal code available from R. See
- ?node.depth (which was already available and documented) for
- details.
+ ?node.depth (which was already documented) for details.
BUG FIXES
o reorder(, "pruningwise") made R crash if the rows of the edge
matrix are in random order: this is now fixed.
- o drop.tip() sometimes shuffled node labels (thanks to Rebecca Best
- for the report).
+ o drop.tip() sometimes shuffled node labels (thanks to Rebecca
+ Best for the report).
+
+ o drop.tip(phy, "") returned a tree with zero-length tip labels:
+ it now returns the tree unchanged (thanks to Brian Anacker for
+ the report).
+
+ o plot.phylo() made R crash if the tree has zero-length tip
+ labels: it now returns NULL (thanks again to Brian Anacker).
OTHER CHANGES
-## drop.tip.R (2012-10-06)
+## drop.tip.R (2012-10-20)
## Remove Tips in a Phylogenetic Tree
if (is.character(tip))
tip <- which(phy$tip.label %in% tip)
}
+ if (!length(tip)) return(phy)
if (any(tip > Ntip))
warning("some tip numbers were higher than the number of tips")
-## plot.phylo.R (2012-10-02)
+## plot.phylo.R (2012-10-20)
## Plot Phylogenies
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))
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: