[Vegan-commits] r811 - in pkg/vegan: R inst

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Apr 22 15:26:58 CEST 2009


Author: jarioksa
Date: 2009-04-22 15:26:58 +0200 (Wed, 22 Apr 2009)
New Revision: 811

Modified:
   pkg/vegan/R/orditkplot.R
   pkg/vegan/inst/ChangeLog
Log:
orditkplot copes with NA and NaN scores

Modified: pkg/vegan/R/orditkplot.R
===================================================================
--- pkg/vegan/R/orditkplot.R	2009-04-21 13:08:47 UTC (rev 810)
+++ pkg/vegan/R/orditkplot.R	2009-04-22 13:26:58 UTC (rev 811)
@@ -323,9 +323,9 @@
     labfnt <- labfnt[take]
     ## Ranges and pretty values for axes
     if (missing(xlim))
-        xlim <- range(sco[,1])
+        xlim <- range(sco[,1], na.rm = TRUE)
     if (missing(ylim))
-        ylim <- range(sco[,2])
+        ylim <- range(sco[,2], na.rm = TRUE)
     xpretty <- pretty(xlim)
     ypretty <- pretty(ylim)
     ## Extend ranges by 4% 

Modified: pkg/vegan/inst/ChangeLog
===================================================================
--- pkg/vegan/inst/ChangeLog	2009-04-21 13:08:47 UTC (rev 810)
+++ pkg/vegan/inst/ChangeLog	2009-04-22 13:26:58 UTC (rev 811)
@@ -4,6 +4,8 @@
 
 Version 1.16-18 (opened April 21, 2009)
 
+	* orditkplot: copes with missing or NaN scores (omits them).
+
 	* ordixyplot: failed in constrained ordination (cca, rda,
 	capscale). Was broken in rev108 on Nov 7, 2007(!). 
 



More information about the Vegan-commits mailing list