fit_ordination.Rd
This is a wrapper function to perform standard data preparation
and either unconstrained (DCA, vegan
package]) or constrained
ordination (DCCA, CANOCO
software) with fossil pollen data.
By default constrained ordination is constrained by "age"
.
Data.frame with community data. Each row is a sample. The first column is
sample_id
and others are individual taxa.
"unconstrained"
- Detrended Correspondence Analysis
"constrained"
- Detrended Correspondence Canonical Analysis
Data.frame with predictors. The first column is sample_id
. Other columns
can be predictors.
Character. Vector with the name of a predictor variable.
Indicate how the predictor should be used
"linear"
- a linear predictor
"poly_2"
- a polynomial predictor of second order
"poly_3"
- a polynomial predictor of third order
Logical. Should community data be transformed into percentages?
Logical. Which transformation should be applied?
"none" - without transformation
"chisq" - Chisq tranformation
"hellinger" - Hellinger transformation
It is recommended to apply a transformation to percentage data.
case_r
- numeric matrix with CaseR scores for first 4 axes
tot_inertia
- total variation in (transformed) response data
axis_1_grad_length
- total gradient length of the first axis
Additional values are reported for unconstrained
ordination
- ordination object of class "decorana"
Additional values are reported for constrained
sel_complexity
- see sel_complexity
agument description