Talk:Code Sample: Generating Manhattan Plots in R

From Genome Analysis Wiki
Revision as of 14:40, 14 January 2014 by Wpgilks (talk | contribs) (x-axis padding)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Gene annotations at the edges of the plot can be cut-off. To prevent this, padding can be added at each end of the x-axis using:

mhplot<-manhattan.plot(cleaned$chr, cleaned$pos, cleaned$pvalue, annotate=ann) mhplot$x.limits<-mhplot$x.limits+10*c(-10,10) print(mhplot)

Thanks for the code and the tip Matthew :)