QQ plots of p-values in R using ggplot2
[This article was first published on Getting Genetics Done
, and kindly contributed to R-bloggers
]. (You can report issue about the content on this page here
Want to share your content on R-bloggers? click here
if you have a blog, or here
if you don't.
Way back will wrote on this topic. See his previous post for Stata code for doing this. Unfortunately the R package that was used to create QQ-plots here has been removed from CRAN, so I wrote my own using ggplot2 and some code I received from Daniel Shriner at NHGRI.
Of course you can use R’s built-in qqplot() function, but I could never figure out a way to add the diagonal using base
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook