Description Usage Arguments Value Examples
View source: R/ggmanZoom.old.R
Zoom in to a specific region of the Manhattan Plot
1 2 3 |
ggmanPlot |
A ggplot object of class 'ggman' |
chromosome |
Chromosome identifier |
start.position |
Starting basepair position |
end.position |
Ending basepair position |
xlabel |
X axis label |
ylabel |
Y axis label |
title |
Plot title |
highlight.group |
Name of the column containing grouping variable in the parent data.frame that was used to create main ggplot layer. |
legend.title |
title for legend; default is 'legend' |
legend.remove |
if TRUE, the legend will be removed; default is FALSE |
... |
other arguments to pass to |
A regional association plot
1 2 3 4 5 6 7 8 9 10 11 | #specific chromosome
p1 <- ggman(toy.gwas, snp = "snp", bp = "bp", chrom = "chrom",
pvalue = "pvalue")
ggmanZoom(p1, chromosome = 1)
#specific region
ggmanZoom(p1, chromosome = 1, start.position = 215388741, end.position = 238580695)
#add highlights and legend
ggmanZoom(p1, chromosome = 1, start.position = 215388741, end.position = 238580695,
highlight.group = "gene", legend.title = "Genes")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.