I'm plotting two vectors with ggplot and want to color the resulting discrete points regarding their superpopulation tags (6 superpops in total, and using my personal color palette mypal). I have a data frame called newPC2 that has three columns: PC1 (x vector), PC2 (y vector), and Superpop (population tags, "EUR", "AMR"). When I try to do the following:
mypalette=c("blue","violetred1","green1","darkorchid1","yellow1","black")
ggplot(newPC2, aes(PC1, PC2, fill=Superpopulations2)) +
geom_point(size = 2.5) +
scale_color_manual(values = mypalette) +
theme(legend.position="bottom")
All the graph dots appear in black. I want the dots colored in one of 6 colors representing its superpopulations, to see how they distribute (they're PCA results).
Any thoughts? Thank you !