Description
Creates a Q-Q plot
Usage
qq_plot(
data,
point_col = "black",
diag_col = "red",
diag_line = "solid",
title = NULL
)
Arguments
data
PLINK assoc output, tab-delimited, or a data.frame with "P" column.
point_col
A character vector indicating the color to use for the SNP p-values. Default is "black".
diag_col
A character vector indicating the color to use for the diagonal line. Default is "red".
diag_line
A character vector indicating the line type to use for the diagonal line. Default is "solid".
title
A string denoting the title to use for the plot. Default is 'Q-Q Plot'
Details
Creates a Q-Q plot from PLINK assoc output (or any tab-delimited file or data frame with "P" column).
Examples
Run this code# NOT RUN {
qq_plot(gwasData)
# }
Run the code above in your browser using DataLab