volcanoly {manhattanly} | R Documentation |
Creates a plotly volcano plot
Description
Creates an interactive volcano plot with multiple annotation options
Usage
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"
)
Arguments
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 |
Value
An interactive volcano plot.
Note
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.
See Also
volcanor
, HapMap
,
significantSNP
Examples
volcanorObj <- volcanor(HapMap,
p = "P",
effect_size = "EFFECTSIZE",
snp = "SNP",
gene = "GENE"
)
class(volcanorObj)
head(volcanorObj$data)