]> git.donarmstrong.com Git - ape.git/commitdiff
cosmetic modif on rtree() + last (?) changes to Damien's functions
authorparadis <paradis@6e262413-ae40-0410-9e79-b911bd7a66b7>
Tue, 6 May 2008 13:40:20 +0000 (13:40 +0000)
committerparadis <paradis@6e262413-ae40-0410-9e79-b911bd7a66b7>
Tue, 6 May 2008 13:40:20 +0000 (13:40 +0000)
git-svn-id: https://svn.mpl.ird.fr/ape/dev/ape@29 6e262413-ae40-0410-9e79-b911bd7a66b7

Changes
DESCRIPTION
R/rtree.R
R/subtreeplot.R
man/ape-internal.Rd
man/subtreeplot.Rd

diff --git a/Changes b/Changes
index da98ec10377afbcdcce8cb4c9743e5ba871cb177..9633e8879b5c4a612b876514efac18aa2b8b1e4d 100644 (file)
--- a/Changes
+++ b/Changes
@@ -4,13 +4,16 @@
 NEW FEATURES
 
     o Four new functions have been written by Damien de Vienne for the
-      graphical exploration of large trees (plot.cophylo, subtrees,
+      graphical exploration of large trees (cophyloplot, subtrees,
       subtreeplot), and to return the graphical coordinates of tree
       (without plotting).
 
     o The new function corPagel() implements the Pagel's "lambda"
       correlation structure.
 
+    o chronopl() has been improved and gains several options: see its
+      help page for details.
+
 
 BUG FIXES
 
@@ -31,12 +34,6 @@ BUG FIXES
     o seg.sites() failed with a list.
 
 
-OTHER CHANGES
-
-    o chronopl() has been improved and gains several options: see its
-      help page for details.
-
-
 
                CHANGES IN APE VERSION 2.1-3
 
index 5ded9a58c3ebc937c910d1f5be588481cd8ea3df..abf1906ee0a273f7a3f54afd99562f2ed3d4f72d 100644 (file)
@@ -1,6 +1,6 @@
 Package: ape
 Version: 2.2
-Date: 2008-04-24
+Date: 2008-05-02
 Title: Analyses of Phylogenetics and Evolution
 Author: Emmanuel Paradis, Ben Bolker, Julien Claude, Hoa Sien Cuong,
   Richard Desper, Benoit Durand, Julien Dutheil, Olivier Gascuel,
index cba5d4e4a40c967dbbb443d30396ab7333913aef..1c2052cb244138823e3b8fcff5372f420f2fc9d5 100644 (file)
--- a/R/rtree.R
+++ b/R/rtree.R
@@ -1,4 +1,4 @@
-## rtree.R (2008-01-13)
+## rtree.R (2008-05-06)
 
 ##   Generates Random Trees
 
@@ -95,7 +95,7 @@ rtree <- function(n, rooted = TRUE, tip.label = NULL, br = runif, ...)
       if (is.null(tip.label)) paste("t", sample(n), sep = "")
       else sample(tip.label)
     if (is.function(br)) phy$edge.length <- br(nbr, ...)
-    phy$Nnode <- if (rooted) n - 1 else n - 2
+    phy$Nnode <- n - 2 + rooted
     class(phy) <- "phylo"
     phy
 }
index 4e6f81f9310b2007a983654af19f1ed293ac3199..b733e9043470e181b3983d883a10fd393fca91d6 100644 (file)
@@ -1,4 +1,4 @@
-## subtreeplot.R (2008-04-14)
+## subtreeplot.R (2008-04-30)
 
 ##  Zoom on a Portion of a Phylogeny by Successive Clicks
 
@@ -23,7 +23,7 @@ subtreeplot<-function(x, wait=FALSE, ...) {
         N.tip<-Ntip(x)
         N.node<-Nnode(x)
 
-        coor<-plot.phylo.coor(x)
+        coor<-plotPhyloCoor(x)
         tips<-x$tip.label
         nodes<-x$node.label
         if (is.null(x$node.label)) nodes<-(N.tip+1):(N.tip+N.node)
index 441d39f9b1fb8b522b35a072211ebd860d819a57..464d3042dade0fa451490ed8dedcc45263e65155 100644 (file)
@@ -44,8 +44,8 @@
 \alias{floating.pie.asp}
 \alias{checkLabel}
 \alias{getMRCA}
-\alias{plot.cophylo2}
-\alias{plot.phylo.coor}
+\alias{plotCophylo2}
+\alias{plotPhyloCoor}
 \title{Internal Ape Functions}
 \description{
   Internal ape functions.
index 62c621b2ad9755dae4f2d74e450e709267336a2e..f72ab8f076c7b0465d02b0b64ab0271bdfade449 100644 (file)
@@ -28,6 +28,7 @@ subtreeplot(x, wait=FALSE, ...)
   \code{\link{plot.phylo}}, \code{\link{drop.tip}}, \code{\link{subtrees}}
 }
 \examples{
+\dontrun{
 #example 1: simple
 tree1<-rtree(50) #random tree with 50 leaves
 tree2<-subtreeplot(tree1, wait=TRUE) # on exit, tree2 will be a subtree of tree1.
@@ -36,4 +37,5 @@ tree2<-subtreeplot(tree1, wait=TRUE) # on exit, tree2 will be a subtree of tree1
 tree1<-rtree(60)
 tree2<-subtreeplot(subtreeplot(subtreeplot(tree1))) #allows three succssive zooms.
 }
+}
 \keyword{hplot}