structure bar plots

Hi all, I advanced using ADMIXTURE after using Plink, and I have got K=5, so I plotted the data with R using col=5. I get the barplot with each bar representing an individual, but how can I recognize the color label such as the red color, for example, and/or which population? Because the *.5.Q file has a row or column for the proportions and each individual.

Here is my result (top), and the result I want to see(bottom);

Here are my codes;

barplot(t(as.matrix(tbl)), col=rainbow(5),

  • xlab="Individual", ylab="Ancestry", border=NA)

Could anyone help me with this question? (I have a different file including location info, but I cannot add it to my graph)

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.