ggmanHighlightGroup: Highlight groups of points in Manhattan plot

Description Usage Arguments Value Examples

Description

Highlights groups of points in the ggman Manhattan Plot and add a legend.

Usage

1
2
ggmanHighlightGroup(ggmanPlot, highlightDfm, snp = "snp", group = "group",
  legend.title = "legend", legend.remove = FALSE, ...)

Arguments

ggmanPlot

A ggman plot of class 'ggman'; see ggman

highlightDfm

A data frame object; one of the columns should contain snps identifiers

snp

Name of the snp column

group

Name of the grouping column; if all the snps are to be highlighted with same colour use ggmanHighlight

legend.title

Title of the legend.

legend.remove

If TRUE, legend will be removed.

...

other arguments passed to geom_point

Value

A manhattan plot with highlighted markers

Examples

1
2
3
4
p1 <- ggman(toy.gwas, snp = "snp", bp = "bp", chrom = "chrom",
pvalue = "pvalue")
ggmanHighlightGroup(p1, highlightDfm = toy.highlights.group, snp = "snp", group = "group",
                    size = 0.5, legend.title = "Significant groups")

drveera/ggman documentation built on May 15, 2019, 2:55 p.m.