Skip to content

Instantly share code, notes, and snippets.

@rezacheloei
rezacheloei / cca.r
Created April 29, 2017 16:03 — forked from perrygeo/cca.r
Canonical Correspondence Analysis in R using the vegan library
library(vegan)
library(labdsv)
data(varespec)
data(varechem)
vare.cca <- cca(varespec ~ Baresoil+Humdepth+pH+N+P+K+Ca+Mg+S+Al+Fe, data=varechem)
vare.cca
plot(vare.cca)
summary(vare.cca)