qq_plot: QQ Plot

Description Usage Arguments Details Value Author(s) Examples

View source: R/qq_plot.R

Description

Creates a Q-Q plot

Usage

1
2
3
4
5
6
7
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).

Value

A Q-Q plot.

Author(s)

Lindokuhle Nkambule

Examples

1

gwaRs documentation built on April 20, 2021, 1:07 a.m.