]> git.donarmstrong.com Git - ape.git/commitdiff
various changes...
authorparadis <paradis@6e262413-ae40-0410-9e79-b911bd7a66b7>
Mon, 4 Jan 2010 18:37:09 +0000 (18:37 +0000)
committerparadis <paradis@6e262413-ae40-0410-9e79-b911bd7a66b7>
Mon, 4 Jan 2010 18:37:09 +0000 (18:37 +0000)
git-svn-id: https://svn.mpl.ird.fr/ape/dev/ape@102 6e262413-ae40-0410-9e79-b911bd7a66b7

R/plot.phylo.R
inst/CITATION
man/compar.cheverud.Rd
man/makeNodeLabel.Rd
man/vcv.phylo.Rd

index 3328472e4486bff6e04bbe9bd9c791e27334147f..e02ba3071726ffcd8e87a6f966aff4e786bfa0eb 100644 (file)
@@ -1,8 +1,8 @@
-## plot.phylo.R (2009-11-10)
+## plot.phylo.R (2010-01-04)
 
 ##   Plot Phylogenies
 
-## Copyright 2002-2009 Emmanuel Paradis
+## Copyright 2002-2010 Emmanuel Paradis
 
 ## This file is part of the R-package `ape'.
 ## See the file ../COPYING for licensing issues.
@@ -62,12 +62,12 @@ plot.phylo <- function(x, type = "phylogram", use.edge.length = TRUE,
 
     phyloORclado <- type %in% c("phylogram", "cladogram")
     horizontal <- direction %in% c("rightwards", "leftwards")
+    xe <- x$edge # to save
     if (phyloORclado) {
         ## we first compute the y-coordinates of the tips.
         phyOrder <- attr(x, "order")
         ## make sure the tree is in cladewise order:
         if (is.null(phyOrder) || phyOrder != "cladewise") {
-            xe <- x$edge
             x <- reorder(x) # fix from Klaus Schliep (2007-06-16)
             if (!identical(x$edge, xe)) {
                 ## modified from Li-San Wang's fix (2007-01-23):
@@ -386,7 +386,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)
-    assign("last_plot.phylo", c(L, list(edge = x$edge, xx = xx, yy = yy)),
+    assign("last_plot.phylo", c(L, list(edge = xe, xx = xx, yy = yy)),
            envir = .PlotPhyloEnv)
     invisible(L)
 }
index 09f3ae9e6da80da31b9bdc3e7d23e57bff2cbd0c..9c7ef12058ee47edb76714348b88ec59a3ddf73f 100644 (file)
@@ -7,7 +7,7 @@ citEntry(entry="Article",
        year = "2004",
        volume = "20",
        pages = "289-290",
-                
+
         textVersion = "Paradis E., Claude J. & Strimmer K. 2004. APE: analyses of phylogenetics and evolution in R language. Bioinformatics 20: 289-290.")
 
 citFooter("As ape is evolving quickly, you may want to cite also its version number (found with 'library(help = ape)').")
\ No newline at end of file
index 4a6f86da959b018e808d8b8f19e0e2f6d08fc9fb..d7729d021a60bbb2cffe21939123ce67a9850324 100644 (file)
@@ -52,11 +52,9 @@ compar.cheverud(y, W, tolerance = 1e-06, gold.tol = 1e-04)
 \seealso{\code{\link{compar.lynch}}}
 \examples{
 ### Example from Harvey and Pagel's book:
-\dontrun{
 y<-c(10,8,3,4)
 W <- matrix(c(1,1/6,1/6,1/6,1/6,1,1/2,1/2,1/6,1/2,1,1,1/6,1/2,1,1), 4)
 compar.cheverud(y,W)
-}
 ### Example from Rohlf's 2001 article:
 W<- matrix(c(
   0,1,1,2,0,0,0,0,
index 6fda0e676a534628f9c064d20a432e7362fe4f2d..e7e920a9de9b2a57b17bcbf8905f04eb56b6582e 100644 (file)
@@ -45,7 +45,9 @@ makeNodeLabel(phy, method = "number", prefix = "Node", nodeList = list(), ...)
   specified node labels (so that if the other nodes have already labels
   they are not modified) while the two others change all labels.
 }
-
+\value{
+  an object of class \code{"phylo"}.
+}
 \author{Emmanuel Paradis \email{Emmanuel.Paradis@mpl.ird.fr}}
 \seealso{
   \code{\link{makeLabel}}, \code{\link[base]{grep}}
index 7af6975cb1139a7dd3006ff904b092b1a37b023f..98def312d01b0b326c94a600951bdbab8694258c 100644 (file)
@@ -50,7 +50,6 @@ tr <- rtree(5)
 vcv(tr)
 vcv(corBrownian(1, tr))
 vcv(corPagel(1, tr))
-vcv(corPagel(0, tr))
 }
 \keyword{manip}
 \keyword{multivariate}