Description Usage Arguments Value Note See Also Examples
Creates an interactive manhattan plot with multiple annotation options
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | manhattanly(
x,
...,
col = c("#969696", "#252525"),
point_size = 5,
labelChr = NULL,
suggestiveline = -log10(1e-05),
suggestiveline_color = "blue",
suggestiveline_width = 1,
genomewideline = -log10(5e-08),
genomewideline_color = "red",
genomewideline_width = 1,
highlight = NULL,
highlight_color = "#00FF00",
showlegend = FALSE,
showgrid = FALSE,
xlab = NULL,
ylab = "-log10(p)",
title = "Manhattan Plot"
)
|
x |
Can be an object of class
|
... |
other parameters passed to |
col |
A character vector indicating the colors of each chromosome. If the number of colors specified is less than the number of unique chromosomes, then the elements will be recycled. Can be Hex Codes as well. |
point_size |
A |
labelChr |
A character vector equal to the number of chromosomes
specifying the chromosome labels (e.g., |
suggestiveline |
Where to draw a "suggestive" line. Default is
|
suggestiveline_color |
color of "suggestive" line. Only used if
|
suggestiveline_width |
Width of |
genomewideline |
Where to draw a "genome-wide sigificant" line. Default
|
genomewideline_color |
color of "genome-wide sigificant" line. Only used
if |
genomewideline_width |
Width of |
highlight |
A character vector of SNPs in your dataset to highlight.
These SNPs should all be in your dataset. Default is |
highlight_color |
Color used to highlight points. Only used if
|
showlegend |
Should a legend be shown. Default is |
showgrid |
Should gridlines be shown. Default is |
xlab |
X-axis label. Default is |
ylab |
Y-axis label. Default is |
title |
Title of the plot. Default is |
An interactive manhattan plot.
This package is inspired by the
qqman
package. This
package provides additional annotation options and builds on the
plotly
d3.js
engine. These plots can be included in
Dash apps, Shiny apps, Rmarkdown documents or embedded in websites using
simple HTML code.
manhattanr
, HapMap
,
significantSNP
1 2 3 4 5 6 7 8 9 | ## Not run:
library(manhattanly)
manhattanly(HapMap)
# highlight SNPs of interest
# 'signigicantSNP' is a character vector of SNPs included in this package
manhattanly(HapMap, snp = "SNP", highlight = significantSNP)
## End(Not run)
|
See example usage at http://sahirbhatnagar.com/manhattanly/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.