-## 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: