manhattan_plot: Make a manhattan plot from GWAS results.

View source: R/manhattan_plot.R

manhattan_plotR Documentation

Make a manhattan plot from GWAS results.

Description

Make a manhattan plot from GWAS results.

Usage

manhattan_plot(res, colors = c("black", "grey80"), cutoff = NULL,
  ylab = expression(paste(-log[10], "p-value")), linecol = "red",
  linetype = 2, linewidth = 2, ...)

Arguments

res

A dataframe with at least three named columns: a numeric column of chromosomes (Chromosome), a numeric column of base-pair positions (Position), and a numeric column of marker p-values (p.value).

colors

A character vector of length two where elements are R color names.

cutoff

A significance cutoff (default = NULL).

ylab

A label for the y-axis (default = expression(paste(-log[10], "p-value"))).

linecol

String specifying an R color for the cutoff line.

linetype

Integer specifying the line type for the cutoff line.

linewidth

Integer specifying the line width for the cutoff line.

...

Other graphics arguments.

Author(s)

Aaron Kusmec


amkusmec/FarmCPUpp documentation built on Dec. 16, 2024, 9:01 a.m.