[R] regarding CCA plot
shailendra pal
p@|@h@||endr@9 @end|ng |rom gm@||@com
Fri Dec 8 11:38:51 CET 2023
Hii rstudio members
I am learning rstudio, For my manuscript I am trying to plot CCA using
species and environmental data. But I am getting error like
Error in cca.default(sptrans, envtrans) :
all row sums must be >0 in the community data matrix
*My code is like *
library(vegan)
library(ggplot2)
library(dplyr)
rassspec<-read.csv("C:/Users/hp/Desktop/R_data/rassspec.csv", header=T,
stringsAsFactors=T)
rassevee<-read.csv("C:/Users/hp/Desktop/R_data/rassenv.csv", header=T,
stringsAsFactors=T)
sptrans <- decostand(rassspec, "hellinger")
envtrans <- decostand(rassevee, "hellinger")
vare.cca <- cca(sptrans, envtrans)
Any kind of help will be appreciable
Thanking you
regards
Shailendra Pal
Research Scholar
Plant Ecology Lab
(Prof. S.C. Garkoti)
School of Environmental Sciences
JNU, New Delhi
110067
[[alternative HTML version deleted]]
More information about the R-help
mailing list