Talk:Code Sample: Generating Manhattan Plots in R
From Genome Analysis Wiki
Jump to navigationJump to searchGene 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 :)