PCA analysis using R

Hello all,

I have some questions related to analyzing my data at the level of phylum (L5).
I would like to do a PCA using R on my dataset which I clean them manually. The dataset stored in csv format. How can I do that without using phyloseq function? Because I do not have access to the previous output of qiime analysis that has been done by someone else.
I brought a small part of the data. The data format is like the following:

Thanks for your time!

Hi @ari_sh70,
It sounds like you just want to make PCoA plots in R using data arrived from QIIME 2.
If you had access to a beta diversity matrix in QIIME 2, I would recommend following this tutorial.
The data table you show is basically a normal site x species table (if you subtract column 2:3, and assuming column 1 is your sample-ids) that you can use to make PCoA plots in R. There are no shortage of tutorials on this topic around the web. For example first one I saw was here. I did notice however that your table appears to be in relative abundances, which is not how I would recommend making your PCoA plots. So hopefully you can retrieve the original table…

1 Like

Hi Mehrbod,
Thanks so very much for helping me out.
Yes, the table is in relative abundances.
Although, I made some PCA plot this afternoon but I need to digging into the links you’ve provided here and I hope I can find out more.

Thanks again,


1 Like