I'm really newbie in R and I'd like to use it to carry out a co-occurrence analysis of microbial taxa. I have a table like this (tab-separated) with the relative abundance of taxa:
Taxon Sample1 Sample2 Sample3.......Sample54
OTU1 0.2 0.005 0.009 0.12
OTU2 0.62.....
OTU3
....
OTU136
I'd like to obtain a Spearman's rank correlation matrix of the taxa and then plot it in some nice graph. I'm supposed to have to convert my table in matrix, before running the corr.test command, right?? So, I tryed to convert it and it didn't give me any error, but when I tryed to tun the corr.test, it says that the matrix is not numeric....
Can anyone help me to figure out how to do??
Thanks Francesca