Description Usage Arguments Value
Creates a manhattan plot using ggplot2 and returns the plot object.
1 2 3 4 5 |
x |
A data frame with result data |
snp |
SNP column in data frame |
chr |
Chromosome column in data frame |
p |
P-value column in data frame |
maf |
MAF column in data frame |
typed |
the column in the data frame indicating whether the markers are genotyped or imputed (ignored if NA) |
annotation |
a vector of annotation (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 |
build |
What build to use for plotting ('b37' or 'b38', default is 'b37') |
title |
Title of plot (date by default, ignored if NA) |
pb |
SNP position column in data frame |
A manhattan plot (ggplot2 object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.