Created
June 9, 2015 13:49
-
-
Save explodecomputer/5550589b78f706c78251 to your computer and use it in GitHub Desktop.
QQ plot in R
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qqplotpval <- function(P, filename=NULL) | |
{ | |
require(GenABEL) | |
l <- estlambda(P, method="median") | |
nom <- paste("lambda = ", round(l$estimate, 3), sep="") | |
if(!is.null(filename)) | |
{ | |
png(filename) | |
} | |
estlambda(P, method="median", plot=TRUE, main=nom) | |
if(!is.null(filename)) | |
{ | |
dev.off() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment