[Phylobase-commits] r269 - branches/pdcgsoc/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Aug 7 06:21:50 CEST 2008


Author: pdc
Date: 2008-08-07 06:21:50 +0200 (Thu, 07 Aug 2008)
New Revision: 269

Modified:
   branches/pdcgsoc/R/treePlot.R
Log:
gridBase package required for this plot

Modified: branches/pdcgsoc/R/treePlot.R
===================================================================
--- branches/pdcgsoc/R/treePlot.R	2008-08-07 04:04:53 UTC (rev 268)
+++ branches/pdcgsoc/R/treePlot.R	2008-08-07 04:21:50 UTC (rev 269)
@@ -59,6 +59,10 @@
     
     if(plot.data) {
         if(tip.plot.fun == "density") {
+            if(!require(gridBase)) {
+                stop('To plot using base graphics (including the "density" plot) 
+                                       you need install the "gridBase" package')
+            }
             tmin <- min(tdata(phy, which = 'tip'), na.rm = T)
             tmax <- max(tdata(phy, which = 'tip'), na.rm = T)
             tip.plot.fun <- function(x) {



More information about the Phylobase-commits mailing list