[Vegan-commits] r1167 - in branches/1.17: R inst

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Mar 4 16:56:36 CET 2010


Author: jarioksa
Date: 2010-03-04 16:56:36 +0100 (Thu, 04 Mar 2010)
New Revision: 1167

Modified:
   branches/1.17/R/densityplot.oecosimu.R
   branches/1.17/inst/ChangeLog
Log:
merged r1164: densityplot.oecosimu warnings with one panel lattice

Modified: branches/1.17/R/densityplot.oecosimu.R
===================================================================
--- branches/1.17/R/densityplot.oecosimu.R	2010-03-04 15:53:39 UTC (rev 1166)
+++ branches/1.17/R/densityplot.oecosimu.R	2010-03-04 15:56:36 UTC (rev 1167)
@@ -5,7 +5,8 @@
     sim <- t(x$oecosimu$simulated)
     obs <- x$oecosimu$statistic
     nm <- names(obs)[col(sim)]
-    densityplot( ~ as.vector(sim) | factor(nm, levels = nm), xlab = xlab,
+    densityplot( ~ as.vector(sim) | factor(nm, levels = unique(nm)),
+                xlab = xlab,
                 panel = function(x, ...) {
                     panel.densityplot(x, ...)
                     panel.abline(v = obs[panel.number()], ...)

Modified: branches/1.17/inst/ChangeLog
===================================================================
--- branches/1.17/inst/ChangeLog	2010-03-04 15:53:39 UTC (rev 1166)
+++ branches/1.17/inst/ChangeLog	2010-03-04 15:56:36 UTC (rev 1167)
@@ -4,6 +4,9 @@
 
 Version 1.17-2
 
+	* densityplot.oecosimu: merged r1164 (warnings when there was only
+	one statistic and hence one lattice panel).
+
 	* nesteddisc: failed if the most species rich sites were tied. Is
 	no faster but slaker. Revs 1158, 1159, 1163.
 



More information about the Vegan-commits mailing list