[Phylobase-commits] r357 - pkg/inst/doc

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Dec 20 00:58:53 CET 2008


Author: pdc
Date: 2008-12-20 00:58:52 +0100 (Sat, 20 Dec 2008)
New Revision: 357

Modified:
   pkg/inst/doc/phylobase.Rnw
Log:
vignette plotting should work now, save for one commented out section

Modified: pkg/inst/doc/phylobase.Rnw
===================================================================
--- pkg/inst/doc/phylobase.Rnw	2008-12-19 23:54:01 UTC (rev 356)
+++ pkg/inst/doc/phylobase.Rnw	2008-12-19 23:58:52 UTC (rev 357)
@@ -55,15 +55,6 @@
 
 The \code{S4} generic system is too complicated to describe here, but doesn't include the same dot notation.  As a result \code{?plot.phylo4} doesn't work, \code{R} does, however, find the right plotting function.
 
-<<plothack>>= 
-## DISABLE PLOTTING until 
-oldplot <- plot
-plot <- function(...) {
-  oldplot(0:1,0:1)
-  text(0.5,0.5,"plotting temporarily disabled")
-} 
-@ 
-
 <<convtree,fig=FALSE>>=
 library(phylobase)
 # convert rand_tree to a phylo4 object
@@ -129,7 +120,7 @@
 
 Print node numbers:
 <<nodenumbergeodata>>=
-nodeNumbers(g1)
+nodeId(g1, which = 'all')
 @ 
 
 Print edge labels (also empty in this case):
@@ -248,14 +239,15 @@
 subset(g2,tips.exclude=names(descendants(g2,MRCA(g2,c("difficilis","fortis")))))
 @ 
 
-Another approach is to pick the subtree graphically, by plotting the tree and using \code{identify}, which returns the identify of the node you click on with the mouse.
+% This isn't implemented yet
+% Another approach is to pick the subtree graphically, by plotting the tree and using \code{identify}, which returns the identify of the node you click on with the mouse.
+% 
+% <<geoident,eval=FALSE>>=
+% plot(g1)
+% n1 <- identify(g1)
+% subset(g2,node.subtree=n1)
+% @ 
 
-<<geoident,eval=FALSE>>=
-plot(g1)
-n1 <- identify(g1)
-subset(g2,node.subtree=n1)
-@ 
-
 \section{Tree-walking}
 
 \code{getnodes},



More information about the Phylobase-commits mailing list