To plot values of LOD score a long of genome

255 views
Skip to first unread message

Rodrigo Lima

unread,
Jul 16, 2013, 3:02:24 PM7/16/13
to ggp...@googlegroups.com
Hi, all

I have a data frame from a QTL analysis in plant with four columns: Markers, Chromosome, Genetic Map (in centimorgan) and o LOD score values. I would like to plot this value in a graph like the graph attached.  

marker chr gen_map LOD
rs1 1 0 14.740
rs1 1 0.9 14.350
rs3 1 3.7 11.806

Are there someone that can help me, please?


Thank you so much.

Rodrigo

 

Benilton Carvalho

unread,
Jul 17, 2013, 11:09:14 AM7/17/13
to Rodrigo Lima, ggp...@googlegroups.com
The plot didn't come through (but it's often good practice not attach files to messages sent to a mailing list)... Looks like you want to take a look at the ggbio package (BioConductor)

http://www.bioconductor.org/packages/2.12/bioc/vignettes/ggbio/inst/doc/ggbio.pdf

Look for Manhattan Plot...

If you rather do that manually, assuming that your data.frame is sorted, you may want to do something along the lines of:

ggplot(dat, aes(cumsum(gen_map), LOD, colour=chr) + geom_point()

b


2013/7/16 Rodrigo Lima <rodrigo...@gmail.com>

 

--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
 
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
 
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rodrigo Lima

unread,
Jul 17, 2013, 11:24:24 AM7/17/13
to Benilton Carvalho, ggp...@googlegroups.com
Hi, Benilton

Thank you so much for your help. I am going to try to do it.

Rodrigo.

Rodrigo Oliveira de Lima
PhD Student in genetics and breeding
Department of General Biology
Federal University of Viçosa, Brazil
Department of Agronomy
University of Wisconsin-Madison, USA



Reply all
Reply to author
Forward
0 new messages