different color for highlighting genes in Manhattan plot in qqman
0
1
Entering edit mode
5.6 years ago
Line Heylen ▴ 30

Hi,

I'm using qqman in R to draw a Manhattan plot (not SNPs, but DNA methylation data of 450K Illumina arrays, but this won't make a difference for this particular question). 

I can highlight specific CpGs of interest using the highlight = in the manhattan function, however, I would like to change this color green to a different more visible color (like red). I do not find any information on whether I can change this highlight color, only on how to change the colors per chromosome. 

This is the code I use: 

qqman::manhattan(a, chr = "CHR", bp = "MAPINFO", p = "P.value", snp = "CPG.Labels", main = "Manhattan Plot", chrlabs = c(1:22), suggestiveline = -log10(1e-05), cex = 0.6, cex.axis = 0.9, genomewideline = -log10(5e-08), highlight = b, logp = TRUE)

I'm not a bio-informaticican, but need to use R for my analyses, so please excuse me if this is a very obvious question.

Thank you very much for your help and time.

Kind regards,

Line

R genome • 4.9k views
ADD COMMENT
0
Entering edit mode

Hi. Did you ever get an answer? I find the green color to be pretty ugly!

ADD REPLY

Login before adding your answer.

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