[Vegan-commits] r1510 - in pkg/vegan: inst man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Feb 27 08:06:22 CET 2011


Author: jarioksa
Date: 2011-02-27 08:06:22 +0100 (Sun, 27 Feb 2011)
New Revision: 1510

Modified:
   pkg/vegan/inst/ChangeLog
   pkg/vegan/man/scores.Rd
Log:
clarified documentation of scores.default (PR#1300)

Modified: pkg/vegan/inst/ChangeLog
===================================================================
--- pkg/vegan/inst/ChangeLog	2011-02-25 14:10:45 UTC (rev 1509)
+++ pkg/vegan/inst/ChangeLog	2011-02-27 07:06:22 UTC (rev 1510)
@@ -61,6 +61,8 @@
 	using 'xlim' to flip axes or zoom into ordination plot(), the
 	non-effects of 'strata' in adonis(). All these indeed are
 	frequently asked.
+
+	* scores.default: clarified documentation (PR#1300).
 	
 Version 1.18-22 (closed February 16, 2011)
 

Modified: pkg/vegan/man/scores.Rd
===================================================================
--- pkg/vegan/man/scores.Rd	2011-02-25 14:10:45 UTC (rev 1509)
+++ pkg/vegan/man/scores.Rd	2011-02-27 07:06:22 UTC (rev 1510)
@@ -14,39 +14,48 @@
 
 \arguments{
   \item{x}{ An ordination result. }
-  \item{choices}{ Ordination axes.  If missing, returns all axes.}
+  \item{choices}{ Ordination axes.  If missing, default method returns all axes.}
   \item{display}{ Partial match to access scores for \code{sites} or
     \code{species}.}
   \item{...}{ Other parameters (unused). }
 }
 \details{
-  Functions \code{\link{cca}} and \code{\link{decorana}} have specific
-  \code{scores} function to access their ordination scores.  Most
-  standard ordination methods of libraries \pkg{mva}, \pkg{multiv} and
-  \pkg{MASS} do not have a  specific \code{class}, and no specific method can be
-  written for them.  However, \code{scores.default} guesses where
-  some commonly used functions keep their site scores and possible
-  species scores.  For site scores, the function seeks items in order
-  \code{points}, \code{rproj}, \code{x}, and \code{scores}.  For species,
-  the seeking order is \code{cproj}, \code{rotation}, and
-  \code{loadings}.
+  Function \code{scores} is a generic method in \pkg{vegan}. Several
+  \pkg{vegan} functions have their own \code{scores} methods with their
+  own defaults and with some new arguments. This help page describes
+  only the default method. For other methods, see, e.g.,
+  \code{\link{scores.cca}}, \code{\link{scores.rda}},
+  \code{\link{scores.decorana}}.
+  
+  The \code{scores.default} function is used to extracts scores from
+  non-\pkg{vegan} ordination results.  Most standard ordination
+  methods of libraries \pkg{mva}, \pkg{multiv} and \pkg{MASS} do not
+  have a specific \code{class}, and no specific method can be written
+  for them.  However, \code{scores.default} guesses where some
+  commonly used functions keep their site scores and possible species
+  scores.
+
   If \code{x} is a matrix, \code{scores.default} returns the chosen
   columns of that matrix, ignoring whether species or sites were
   requested (do not regard this as a bug but as a feature, please).
   Currently the function seems to work at least for \code{\link[MASS]{isoMDS}},
-  \code{\link{prcomp}}, \code{\link{princomp}}. It may work in
-  other cases or fail mysteriously.
+  \code{\link{prcomp}}, \code{\link{princomp}} and some \pkg{ade4} objects. 
+  It may work in other cases or fail mysteriously.
 }
 \value{
-  The function returns a matrix of requested scores.
+  The function returns a matrix of scores.
 }
 \author{Jari Oksanen }
 
-\seealso{\code{\link{scores.cca}}, \code{\link{scores.decorana}}.  These
-have somewhat different interface -- \code{\link{scores.cca}} in
-particular -- but all work with keywords \code{display="sites"} and
-\code{display="species"} and return a matrix with these.
+\seealso{
+  \code{\link{scores.cca}}, \code{\link{scores.decorana}}.  These have
+  somewhat different interface -- \code{\link{scores.cca}} in
+  particular -- but all work with keywords \code{display="sites"} and
+  return a matrix. However, they may also return a list of matrices,
+  and some other \code{scores} methods will have quite different
+  arguments.  
 }
+
 \examples{
 data(varespec)
 vare.pca <- prcomp(varespec)



More information about the Vegan-commits mailing list