QQ plots of p-values in R using ggplot2
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
To leave a comment
for the author, please follow the link and comment on his blog: Getting Genetics Done
offers daily e-mail updates
news and tutorials
on topics such as: visualization (ggplot2
), programming (RStudio
, Web Scraping
) statistics (regression
, time series
) and more...
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook