ggmanZoom.old: ggmanZoom.old

Description Usage Arguments Value Examples

View source: R/ggmanZoom.old.R

Description

Zoom in to a specific region of the Manhattan Plot

Usage

1
2
3
ggmanZoom.old(ggmanPlot, chromosome, start.position = NA, end.position = NA,
  xlabel = NA, ylabel = NA, title = NA, highlight.group = NA,
  legend.title = "legend", legend.remove = FALSE, ...)

Arguments

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 geom_point

Value

A regional association plot

Examples

 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")

veera-dr/ggman documentation built on Oct. 17, 2018, 2:25 a.m.