Creates an interactive volcano plot with multiple annotation options
volcanoly( x, ..., col = c("#252525"), point_size = 5, effect_size_line = c(-1, 1), effect_size_line_color = "grey", effect_size_line_width = 0.5, effect_size_line_type = "dash", genomewideline = -log10(1e-05), genomewideline_color = "grey", genomewideline_width = 0.5, genomewideline_type = "dash", highlight = NULL, highlight_color = "red", xlab = NULL, ylab = "-log10(p)", title = "Volcano Plot" )
x | Can be an object of class
|
---|---|
... | other parameters passed to |
col | A character of length 1 indicating the color of the points. Only the first argument will be used if more than one color is supplied. Can be Hex Codes as well. |
point_size | A |
effect_size_line | Where to draw a "suggestive" line on the x-axis.
Default is |
effect_size_line_color | color of "suggestive" line. Only used if
|
effect_size_line_width | Width of |
effect_size_line_type | Sets the line type of the
|
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 |
genomewideline_type | Sets the line type of the |
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
|
xlab | X-axis label. Default is |
ylab | Y-axis label. Default is |
title | Title of the plot. Default is |
An interactive volcano plot.
This package provides additional annotation options and builds on the
plotly
d3.js
engine. These plots can be included in
Shiny apps, Dash apps, Rmarkdown documents or embeded in websites using
simple HTML code.
volcanorObj <- volcanor(HapMap, p = "P", effect_size = "EFFECTSIZE", snp = "SNP", gene = "GENE" ) class(volcanorObj)#> [1] "volcanor"#> EFFECTSIZE P SNP GENE LOG10P #> 1 -0.0946 0.3353438 rs9697358 ISG15 0.47450973 #> 2 -0.0947 0.2458571 rs34945898 TNFRSF4 0.60931719 #> 3 -0.0741 0.8232859 rs12034613 FP7162 0.08444933 #> 4 0.0146 0.4932038 rs4648633 MORN1 0.30697357 #> 5 0.1234 0.6053916 rs4430271 MMEL1 0.21796358 #> 6 0.1979 0.1944431 rs6685625 ACTRT2 0.71120743