r - How to change the labels of samples in CCA plot -


by using vegan package, drew cca plot. have add first column in envi file names of samples. however,the samples in plot labeled default,such row1,row2,..... want change lables of samples specific ones listed in tables,such jan.s1,jan.s2,...... how should change labels? besides,how change location of these labels in order avoid overlapping dots?

here, attached codes follows:

speciesdata=read.csv("species.csv", header=t, sep=",")  envdata= read.csv("envi.csv", header=t, sep=",") miseq.cca=cca(speciesdata ~ tn + tp + nh4  + ph + zn + pb + cd + ni + cr, data = envdata) miseq.cca plot(miseq.cca,display=c("si","bp"),scaling=3) 

you can use argument "row.names=1". make r assume first column of csv sheet sample name, , not data.

ex: 1) put "jan.s1,jan.s2,....." on first column of species.csv file. 2) use "speciesdata=read.csv("species.csv", header=t, sep=",",row.names=1)"on r script.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -