manhattan_plot: Create a manhattan plot

Description Usage Arguments Value

View source: R/manhattan_plot.R

Description

Create a manhattan plot from a data.frame.

Usage

1
2
3
manhattan_plot(data, threshold, thin = FALSE,
  thin.param = list(logp.thin.thresh = 5, logp.thin.rate = 0.1, buffer =
  1e+06), header = list(chr = "CHR", pos = "BP", pval = "P"))

Arguments

data

[data.frame]
A data.table object containing at least information about chromosome, position and p value.

threshold

[number]
Single numeric to draw a threshold line at. On p value scale. Optional.

thin

[logical]
Should the data be thinned?

thin.param

[list]
A list with the following elements: logp.thin.thresh (number), logp.thin.rate (number) and buffer (integer) indicating at which rate points with a low log p value should be removed and how many base pairs at the start and end of each chromosome should not be excluded from thinning.

header

[list]
A list with the following elements: chr, pos and pval (all character) indicating the columns to use for chromosome, position and p value information.

Value

A ggplot2 object.


imbs-hl/imbs documentation built on Sept. 6, 2019, 11:05 p.m.