twinsform | R Documentation |
Function transforms data so that Correspondence Analysis gives the
same result as in twinspan
divisions.
twinsform(x, cutlevels = c(0, 2, 5, 10, 20), subset, downweight = TRUE)
x |
Input (community) data. |
cutlevels |
Cut levels used to split quantitative data into binary pseudospecies. |
subset |
Logical vector or indices that select a subset of quadrats (sampling units). |
downweight |
Downweight result similarly as in
|
In twinspan
, quantitative species data are split into
binary (0/1) pseudospecies by cutlevels
. All these
pseudospecies are stacked as columns in a new data set. Rare
pseudospecies that occur at lower frequency than 0.2 are
downweight
ed within twinspan
. This
reduces the weight of rare species or rare abundance levels in
correspondence analysis, but downweighting is optional in this
function.
When the downweighted data are analysed with correspondence
analysis (e.g., cca
,
decorana
with option ira=1
), these will
give the same first eigenvalue and ordination as in
twinspan
. When a subset
of a
twinspan
class is used, correspondence analysis of
subdivision of the class can be obtained.
A stacked matrix of optionally downweighted pseudospecies.
downweight
in vegan: this
function is often used with Detrended Correspondence Analysis
(decorana
). However, the implementation is
slightly different in TWINSPAN, and weights differ
slightly. Function twin2stack
extracts similar
data from a twinspan
result object.
data(ahti)
tahti <- twinsform(ahti)
colnames(tahti)
## needs vegan for correspondence analysis
if (suppressPackageStartupMessages(require("vegan"))) {
decorana(tahti, ira=1)
}
## similar first eigenvalue
eigenvals(twinspan(ahti))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.