Description Usage Arguments Value Examples
Highlights groups of points in the ggman Manhattan Plot and add a legend.
1 2 | ggmanHighlightGroup(ggmanPlot, highlightDfm, snp = "snp", group = "group",
legend.title = "legend", legend.remove = FALSE, ...)
|
ggmanPlot |
A ggman plot of class 'ggman'; see |
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 |
legend.title |
Title of the legend. |
legend.remove |
If TRUE, legend will be removed. |
... |
other arguments passed to |
A manhattan plot with highlighted markers
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.