As far as I know, the only software that allows you to make a CPO is CANOCO. I was wondering if there is a R package to make the same analysis or an equivalent. Thank you!

EDIT: In case new people has the same question, I found a way using the classic cca function in the vegan package. To perform a CPO you need your community matrix, with species in roes and sites in columns, and environmental matrix, with species in rows and environmental variables in columns, and third, constrain matrix, which in this case will be a matrix with species in rows and ancestors in columns, being the ancestors the nodes in a phylogenetic tree. Species under the same ancestor receive a 1 in the matrix, otherwise it will be a 0.

So, the formula would be something like

cpo1

More Nicolás Pelegrin's questions See All
Similar questions and discussions