I am trying to plot some rarefaction curves, but I am getting this error:
Error in as(x, "matrix")[i, j, drop = FALSE] : (subscript) logical subscript too long
I am giving a reproducible example on how I use the function:
data("GlobalPatterns")
rare<-rarecurve(otu_table(GlobalPatterns), step=100, lwd=2, ylab="OTU", label=F)
I am using R.4.2.2 and version 2.6-4 of vegan. I already used this function with the phyloseq object like this and it worked properly, Do you know what is the problem and how I could fix it?