[Vegan-commits] r2271 - pkg/vegan/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Sep 5 17:42:49 CEST 2012


Author: jarioksa
Date: 2012-09-05 17:42:49 +0200 (Wed, 05 Sep 2012)
New Revision: 2271

Modified:
   pkg/vegan/man/varpart.Rd
Log:
plot.varpart accept 'bg' argument to fill the circles

Modified: pkg/vegan/man/varpart.Rd
===================================================================
--- pkg/vegan/man/varpart.Rd	2012-09-04 04:48:18 UTC (rev 2270)
+++ pkg/vegan/man/varpart.Rd	2012-09-05 15:42:49 UTC (rev 2271)
@@ -228,8 +228,12 @@
 # Formula shortcut "~ ." means: use all variables in 'data'.
 mod <- varpart(mite, ~ ., mite.pcnm, data=mite.env, transfo="hel")
 mod
-showvarparts(2)
-plot(mod)
+
+## argument 'bg' is passed to circle drawing, and the following
+## defines semitransparent colours
+col2 <- rgb(c(1,1),c(1,0), c(0,1), 0.3)
+showvarparts(2, bg = col2)
+plot(mod, bg = col2)
 # Alternative way of to conduct this partitioning
 # Change the data frame with factors into numeric model matrix
 mm <- model.matrix(~ SubsDens + WatrCont + Substrate + Shrub + Topo, mite.env)[,-1]



More information about the Vegan-commits mailing list