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]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.