[R] how to change manhattan plot code to get a different color per chromosome

Ana Marija @okov|c@@n@m@r|j@ @end|ng |rom gm@||@com
Tue Jun 16 00:06:08 CEST 2020


Hello,

Is there is a way to set colors in this plot to look like this one in
attach (different color for each CHR-there is 22 of them)?


library(qqman)
results_log <- read.table("meta_p_pos_chr.F", head=TRUE,stringsAsFactors=FALSE)
png("META.png")
manhattan(results_log,chr="CHR",bp="POS",p="META_pval",snp="MARKER",ylim
= c(0, 10))
dev.off()

Thanks
Ana


More information about the R-help mailing list