qq: Creates a QQ plot using ggplot2 and returns the plot object.

Description Usage Arguments Value

View source: R/qq.R

Description

Creates a QQ plot using ggplot2 and returns the plot object.

Usage

1
2
3
qq(x, p = "P", maf = "MAF", typed = NA, thresholdLow = 5,
  thresholdHigh = -log10(5e-08), thresholdLowColor = "blue",
  thresholdHighColor = "red", mafColor = "black", title = Sys.time())

Arguments

x

A data frame with result data

p

P-value column in data frame

typed

the column in the data frame indicating whether the markers are genotyped or imputed (ignored if NA)

thresholdLow

the low threshold value (log10)

thresholdHigh

the high threshold value (log10)

thresholdLowColor

the color of the low threshold

thresholdHighColor

the color of the high threshold

mafColor

the color of the low maf values

title

Title of plot (date by default, ignored if NA)

Value

A manhattan plot (ggplot2 object)


SelectionPredisposed/qqman2 documentation built on May 21, 2019, 1:41 a.m.