Group samples for rarefaction curve

Hello!

I am trying to create a rarefaction curve by four different groups instead of all of my samples. I read that I'll need to group my table.qza differently and then make a phyloseq object from the new table. How could I do this?

Here is my curve and code:
rarecurve(t(otu_table(DADA2phyloseq)), step=50, cex=0.5, se= TRUE, xlim= c(0,26000), col = "blue")

Hi,

Welcome to the RStudio community!

In order for us to help you with your question, please provide us a minimal reproducible example where you provide a minimal (dummy) dataset and code that can recreate the issue. Once we have that, we can go from there. For help on creating a Reprex, see this guide:

I assume you have to group and summarise the data before you plot the curve, so please be sure to provide a sample of the original data, and how you'd like to group it.

Good luck!
PJ

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.