Plot for PCA
0
0
Entering edit mode
7.7 years ago
genogeno • 0

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?

SNP R genome • 1.9k views
ADD COMMENT
1
Entering edit mode

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.

ADD REPLY

Login before adding your answer.

Traffic: 2342 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6