ewaff.qq.plot: QQ plot

View source: R/plots.r

ewaff.qq.plotR Documentation

QQ plot

Description

QQ plot

Usage

ewaff.qq.plot(
  p.values,
  sig.threshold = 1e-07,
  sig.color = "red",
  title = "QQ plot",
  xlab = bquote(-log[10]("expected p-values")),
  ylab = bquote(-log[10]("observed p-values")),
  lambda.method = "median"
)

Arguments

p.values

A vector of p-values, one per association test.

sig.threshold

P-value threshold for significance (Default: 1e-7).

sig.color

Color for points corresponding to significant tests (Default: "red").

title

Title for the plot (Default: "QQ plot").

xlab

Label for the x-axis (Default: -log_10(expected p-values)).

ylab

Label for the y-axis (Default: -log_10(observed p-values)).

lambda.method

Method for calculating genomic inflation lambda. Valid values are "median", "regression", "robust", or "none" (Default: "median"). A value of "none" will prevent the lambda value being displayed on the plot.

Value

An ggplot object.


perishky/ewaff documentation built on Nov. 10, 2024, 4:53 p.m.