douconca: Double Constrained Correspondence Analysis for Trait-Environment Analysis in Ecology

Double constrained correspondence analysis (dc-CA) analyzes (multi-)trait (multi-)environment ecological data by using the 'vegan' package and native R code. Throughout the two step algorithm of ter Braak et al. (2018) is used. This algorithm combines and extends community- (sample-) and species-level analyses, i.e. the usual community weighted means (CWM)-based regression analysis and the species-level analysis of species-niche centroids (SNC)-based regression analysis. The two steps use canonical correspondence analysis to regress the abundance data on to the traits and (weighted) redundancy analysis to regress the CWM of the orthonormalized traits on to the environmental predictors. The function dc_CA() has an option to divide the abundance data of a site by the site total, giving equal site weights. This division has the advantage that the multivariate analysis corresponds with an unweighted (multi-trait) community-level analysis, instead of being weighted. The first step of the algorithm uses vegan::cca(). The second step uses wrda() but vegan::rda() if the site weights are equal. This version has a predict() function. For details see ter Braak et al. 2018 <doi:10.1007/s10651-017-0395-x>. and ter Braak & van Rossum 2025 <doi:10.1016/j.ecoinf.2025.103143>.

Package details

AuthorCajo J.F ter Braak [aut] (ORCID: <https://orcid.org/0000-0002-0414-8745>), Bart-Jan van Rossum [aut, cre] (ORCID: <https://orcid.org/0000-0002-8673-2514>)
MaintainerBart-Jan van Rossum <bart-jan.vanrossum@wur.nl>
LicenseGPL-3
Version1.2.5
URL https://zenodo.org/records/13970152 https://github.com/Biometris/douconca
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("douconca")

Try the douconca package in your browser

Any scripts or data that you put into this service are public.

douconca documentation built on Feb. 23, 2026, 5:07 p.m.