I am performing a CAP analysis (vegan, R) on a species abundance table, with 2 explaining factors (Location and Complexity_Watson) and one explaining continuous variable (Depth..m.). Below you will find some of my code:
species.cap=capscale(Species.MVA.DOV ~ Location + Depth..m. +
Complexity_Watson, data=Habitat.MVA.DOV, distance="bray", na.action=na.omit)
However, summary(species.cap)
yields the location & complexity as both constraining (continuous) variables and constraining factors.
How can I make sure it only enters them as factors? (I tried adding factor()
but that yielded the same result).
When I want to plot the environmental variables, it creates both arrows and centroids for location and complexity, while I only want centroids (and an arrow for depth).
Could someone help me out?