Colors to Plotting PCA (2D) by R
Hi there
I want to design a PCA plot by R. Repeatedly I have received this error:
Error in plot.xy(xy, type, ...) : invalid color name 'PopColor'
Popcolor is a column in the popGroups file with this format:
Pop2 Symbol PopColor PopColorBg
AFF 0 black gray
AFF 0 black gray
ALL 1 red black
ALL 1 red black
ALL 1 red black
AMM 2 green blue
AMM 2 green blue
AMM 2 green blue
AMM 2 green blue
I would be grateful if someone can help me to solve that problem!
• 1,707 views
•
link
0 answers
No answers yet.
Log in to answer this question.
If you want help, you need to do more than this. What command are you using to turn this into a plot?
Hi swbarnes2, Thanks for your respond and your consideration. The R code is: