Admixture Plot Problem
0
2
Entering edit mode
3.0 years ago

I would like to put the sample name on the axis e.g Sample 1 - Sample 19. May I know how to add that inform on the x-axis of the Admixture plot? How I can I know which bar is corresponding to which sample?Thanks in advance.

Here is my code

pdf("structure.pdf")
tbl=read.table("plink.3.Q")
barplot(t(as.matrix(tbl)), col=rainbow(3), xlab="Individual #", ylab="Ancestry", border=NA)
dev.off()

This the plot enter image description here

Admixture • 609 views
ADD COMMENT

Login before adding your answer.

Traffic: 2239 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