Creates a Manhattan plot
man_plot(
data,
chromCol = c("gray44", "black"),
genomewideline = -log10(5e-08),
suggestiveline = -log10(1e-05),
chromosome = "ALL",
annotatePval = FALSE,
annotateSNP = NULL,
annotateCol = "red",
highlight = NULL,
highlightCol = "green3",
title = NULL
)
PLINK assoc output, tab-delimited, or a data.frame with "SNP", "CHR", "BP", and "P" columns.
A character vector indicating which colors to alternate for the chromosomes.
Where to draw the "genome-wide significant" line. Default -log10(5e-8). Set to FALSE or F to disable
Where to draw the "suggestive" line. Default -log10(1e-5). Set to FALSE or F to disable.
An integer indicating which chromosome to plot. Default is "ALL".
If set, SNPs with p-value less than or equal to this p-value will be annotated on the plot.
A character vector of SNPs in your dataset to annotate. If some of the SNPs are not in your dataset, gwaRs will throw a warning message.
A string denoting the color to use for the annotations.
A character vector of SNPs in the dataset to highlight. If some of the SNPs are not in your dataset, gwaRs will throw a warning message. Default is NULL.
A string denoting the color to use to highlight the SNPs.
A string denoting the title to use for the plot. Default is 'Manhattan Plot'
A Manhattan plot.
Creates a Manhattan plot from PLINK assoc output (or any tab-delimited file or data frame with "SNP", "CHR", "BP", and "P" columns).
# NOT RUN {
man_plot(gwasData)
# }
Run the code above in your browser using DataLab