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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Mar 30 15:45:24 CEST 2011


Author: gsimpson
Date: 2011-03-30 15:45:24 +0200 (Wed, 30 Mar 2011)
New Revision: 1559

Modified:
   pkg/vegan/R/plot.contribdiv.R
   pkg/vegan/inst/ChangeLog
Log:
tweak to plot.contribdiv in how the axes and box are drawn

Modified: pkg/vegan/R/plot.contribdiv.R
===================================================================
--- pkg/vegan/R/plot.contribdiv.R	2011-03-30 13:42:45 UTC (rev 1558)
+++ pkg/vegan/R/plot.contribdiv.R	2011-03-30 13:45:24 UTC (rev 1559)
@@ -11,8 +11,12 @@
         ylim <- c(0, max(y))
     if (missing(col))
         col <- c("lightgrey", "darkgrey")
-    matplot(y, type = "n", sub=sub,xlab=xlab,ylab=ylab,...)
+    matplot(y, type = "n", sub=sub, xlab=xlab, ylab=ylab, axes = FALSE,
+            bty = "n", ...)
     polygon(c(1,1:nrow(y),nrow(y)), c(0,y$gamma,0), col=col[1])
     polygon(c(1,1:nrow(y),nrow(y)), c(0,y$alpha,0), col=col[2])
+    axis(side = 1)
+    axis(side = 2)
+    box()
     invisible(x)
 }

Modified: pkg/vegan/inst/ChangeLog
===================================================================
--- pkg/vegan/inst/ChangeLog	2011-03-30 13:42:45 UTC (rev 1558)
+++ pkg/vegan/inst/ChangeLog	2011-03-30 13:45:24 UTC (rev 1559)
@@ -27,6 +27,9 @@
 	heterogeneities as Canoco does. Includes a method for objects of
 	class "cca".
 
+	* plot.contribdiv: plot now draws axes and box *after* doing the
+	drawing - stops polygons overplotting the axis and box.
+
 Version 1.18-25 (closed March 23, 2011)
 
 	* ordilabel: gained argument 'xpd' to draw labels outside the plot



More information about the Vegan-commits mailing list