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;
tbl=read.table("flip.5.Q")
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)