Usage
gg_Manhattan_Zoom(
folder = "GWAS_Results/",
traits = list_Traits(folder)[1],
title = paste(traits, collapse = " "),
chr = 1,
pos1 = NULL,
pos2 = NULL,
addGenome = F,
threshold = NULL,
sug.threshold = NULL,
markers = NULL,
labels = markers,
vlines = markers,
vline.colors = rep("red", length(vlines)),
vline.types = rep(1, length(vlines)),
vline.legend = T,
genes = NULL,
facet.model = F,
models = c("MLM", "MLMM", "FarmCPU", "BLINK", "GLM", "CMLM", "SUPER"),
model.colors = gwaspr_ModelColors,
trait.colors = gwaspr_Colors,
sig.color = "black",
legend.rows = 1,
legend.box = "horizontal",
point.sizes = c(0.3, 1, 0.75),
pmax = NULL,
plotHBPvalues = F,
skyline = "NYC"
)Arguments
- folder
Folder containing GWAS results.
- traits
The traits to read.
- title
A title for the plot.
- chr
Chromosome to plot.
- pos1
Start position on chromosome.
- pos2
End position on chromosome.
- threshold
Significant Threshold.
- sug.threshold
Suggested threshold.
- markers
Markers to be labelled.
- labels
Labels to be used for markers.
- vlines
Markers which will be used as a location for a vertical lines.
- vline.colors
colors for each vertical line.
- vline.types
lty for each vertical line.
- vline.legend
Logical, whether or not to add a legend for the vlines.
- genes
Table of genes with "Chr", Start" and "End" columns.
- facet.model
Logical, whether or not to produce a facetted or multi-model plot. Default is
facet.model = F.- models
Models to read.
- model.colors
Colors for each model. Used if
facet.model = F.- trait.colors
Colors for each chromosome. Used if
facet.model = T.- sig.color
Color for significant assoctiations.
- legend.rows
Number of rows for the legend.
- legend.box
Alignment of the legend. Default is "horizontal", but it can be changed to "vertical".
- point.sizes
Sizes for the points. c("Not Sig", "Sig", "Sug").
- pmax
A max value for the y-axis.
- plotHBPvalues
Logical, should H.B.P.Values be uses.
- skyline
Which skyline type to use. Can be "NYC" or "Kansas". If NULL, it will use the highest P.value.