Plot for PCA
I tried to do pca in plink. I got .eigenvec and .eigenval files. I want to draw a plot. In .eigenvec file, I have family ID column, sample individual ID column and 20 PC columns,respectively. Should I use first two PC columns? How can I draw a plot? I tried to draw in R using first two PCs and got a plot but I need to colour up it and give population names. How can I figure it out?
• 2,158 views
•
link
0 answers
No answers yet.
Log in to answer this question.
PCA has been well described and tons upon tons of help are available. Your question alone has been answered hundreds of times. Try Factominer package in R since it's seems you are not building the plot from scratch.