capscale
conforms more to distance-based Redundancy Analysis (Legendre & Anderson, 1999) than to the original description for CAP (Anderson & Willis, 2003 ).CAPdiscrim(formula,data,dist="bray",axes=4,m=0,permutations=0)
vegdist
: partial match to "manhattan", "euclidean", "canberra", "bray", "kulczynski", "jaccard", "gower", "morisita", "horn" or "mountford". Thicmdscale
) to provide in the result.lda
). If m=0 then the number of axes that provides the best distinction between the groups is calculated (following the method of Anderson anordiplot
, and species scores can be added by add.spec.scores
.cmdscale
) with linear discriminant analysis (lda
). Anderson and Willis advocate to use the number of principal coordinate axes that result in the best prediction of group identities of the sites.
For permutations > 0, the analysis is repeated by randomising the observations of the environmental data set. The significance is estimated by dividing the number of times the randomisation generated a larger percentage of correct predictions.library(vegan)
library(MASS)
data(dune)
data(dune.env)
Ordination.model1 <- CAPdiscrim(dune~Management, data=dune.env,
dist="bray",axes=2,m=0)
Ordination.model1
plot1 <- ordiplot(Ordination.model1)
ordisymbol(plot1,dune.env,"Management",legend=FALSE)
## CLICK IN THE GRAPH TO INDICATE THE POSITION FOR THE LEGEND
## IN CASE THAT THE OPTION WAS LEGEND=TRUE.
Run the code above in your browser using DataLab