I'm very new to R and trying to add an ordispider to an ordplot (NMDS). My original data matrix has a site column, several weather columns, and columns with duck counts. I defined the whole matrix as NMDS. I defined the duck counts as:
duck_species <- NMDS[10:32]
I defined the weather data as:
Management<-NMDS[2:8]
I made the ordplot using metaMDS like this:
duck_species.mds <- metaMDS(comm = duck_species, distance = "bray", trace = FALSE, autotransform = TRUE)
Now I'm stuck on running the ordispider function. Do I need to run more functions on "Management" before I can put it into the ordispider function? I tried running it like this:
ordispider(duck_species.mds, Management, label = TRUE)
Error in table(groups) : attempt to make a table with >= 2^31 elements
I'm not sure if I need to use envfit somehow or what. Any help would be much appreciated.