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

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Aug 20 10:25:54 CEST 2009


Author: jarioksa
Date: 2009-08-20 10:25:53 +0200 (Thu, 20 Aug 2009)
New Revision: 930

Modified:
   pkg/vegan/man/ordihull.Rd
Log:
help doc was adapted for the orddiellipse independence from the 'ellipse' package

Modified: pkg/vegan/man/ordihull.Rd
===================================================================
--- pkg/vegan/man/ordihull.Rd	2009-08-20 08:12:49 UTC (rev 929)
+++ pkg/vegan/man/ordihull.Rd	2009-08-20 08:25:53 UTC (rev 930)
@@ -104,12 +104,11 @@
   connects each `WA' scores to the correspoding `LC' score.
 
   Function \code{ordiellipse} draws \code{\link{lines}} or
-  \code{\link{polygon}}s for dispersion
-  \code{\link[ellipse]{ellipse}} using either standard deviation of
-  point scores or standard error of the (weighted) average of
-  scores, and the (weighted) correlation defines the direction of the
-  principal axis of the ellipse. The function requires package
-  \pkg{ellipse}. An ellipsoid hull can be drawn with function
+  \code{\link{polygon}}s for dispersion \code{\link[ellipse]{ellipse}}
+  using either standard deviation of point scores or standard error of
+  the (weighted) average of scores, and the (weighted) correlation
+  defines the direction of the principal axis of the ellipse. An
+  ellipsoid hull can be drawn with function
   \code{\link[cluster]{ellipsoidhull}} of package \pkg{cluster}.
 
   Function \code{ordicluster} overlays a cluster dendrogram onto
@@ -130,26 +129,25 @@
   you may wish to change the default values in \code{\link{arrows}},
   \code{\link{lines}}, \code{\link{segments}} and
   \code{\link{polygon}}. You can pass
-  parameters to \code{\link{scores}} as well. Other underlying functions
-  are \code{\link{chull}} and \code{\link[ellipse]{ellipse}}.
+  parameters to \code{\link{scores}} as well. Umderlying function for
+  \code{ordihull} is \code{\link{chull}}.
 }
 
 
 \examples{
 data(dune)
 data(dune.env)
-mod <- cca(dune ~ Moisture, dune.env)
+mod <- cca(dune ~ Management, dune.env)
 attach(dune.env)
 ## pass non-graphical arguments without warnings
 plot(mod, type="n", scaling = 3)
-ordihull(mod, Moisture, scaling = 3)
+ordihull(mod, Management, scaling = 3)
 ordispider(mod, col="red", scaling = 3)
 plot(mod, type = "p", display="sites")
 ordicluster(mod, hclust(vegdist(dune)), prune=3, col = "blue")
-# The following is not executed automatically because it needs
-# a non-standard library `ellipse'. 
-\dontrun{
-ordiellipse(mod, Moisture, kind="se", conf=0.95, lwd=2, col="blue")}
+plot(mod, type="n", display = "sites")
+text(mod, display="sites", labels = as.character(Management))
+ordiellipse(mod, Management, kind="se", conf=0.95, lwd=2, col="blue")
 }
 \keyword{aplot }
 



More information about the Vegan-commits mailing list