[Vegan-commits] r2329 - pkg/vegan/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Oct 15 17:53:34 CEST 2012


Author: psolymos
Date: 2012-10-15 17:53:34 +0200 (Mon, 15 Oct 2012)
New Revision: 2329

Modified:
   pkg/vegan/R/msoplot.R
Log:
clearing up argument ambiguity in legend

Modified: pkg/vegan/R/msoplot.R
===================================================================
--- pkg/vegan/R/msoplot.R	2012-10-15 15:37:37 UTC (rev 2328)
+++ pkg/vegan/R/msoplot.R	2012-10-15 15:53:34 UTC (rev 2329)
@@ -35,7 +35,8 @@
             lines(vario$Dist, vario$Sum, type = "b", lty = 2, 
                   pch = 3, ...)
             ## Legend
-            legend(legend, c(label[c(2,3:b)+3], ci.lab, sign.lab),
+            legend(legend, 
+                   legend=c(label[c(2,3:b)+3], ci.lab, sign.lab),
                    lty=c(c(1,2,1,1,1)[2:b], 1, if(hasSig) NA),
                    pch=c(3, (6:(b+3))-6, NA, if(hasSig) 15)
                    )
@@ -56,7 +57,7 @@
                  label = c(vario$n), cex = 0.8)
             abline(v = max(object$H)/2, lty = 3, ...)
             legend(legend,
-                   c("Total variance","Global variance estimate",
+                   legend=c("Total variance","Global variance estimate",
                      if(hasSig) "Sign. autocorrelation"),
                    lty=c(1,5, if(hasSig) NA),
                    pch = if(hasSig) c(NA,NA,15) else NULL)



More information about the Vegan-commits mailing list