volcanoPlot | R Documentation |
Convenience function to create volcano plots from results generated within
this package. This is mostly used by {sparrow.shiny}
.
volcanoPlot(
x,
stats = "dge",
xaxis = "logFC",
yaxis = "pval",
idx,
xtfrm = base::identity,
ytfrm = function(vals) -log10(vals),
xlab = xaxis,
ylab = sprintf("-log10(%s)", yaxis),
highlight = NULL,
horiz_line = c(padj = 0.1),
xhex = NULL,
yhex = NULL,
width = NULL,
height = NULL,
shiny_source = "mgvolcano",
ggtheme = ggplot2::theme_bw(),
...
)
x |
A |
stats |
One of |
xaxis , yaxis |
the column of the the provided (or extracted)
|
idx |
The column of the |
xtfrm |
A function that transforms the |
ytfrm |
A function that transforms the |
xlab , ylab |
x and y axis labels |
highlight |
A vector of featureIds to highlight, or a GeneSetDb that we can extract the featureIds from for this purpose. |
horiz_line |
A (optionally named) number vecor (length 1) that indicates
where a line should be drawn across the volcano plot. This is usually done
to signify statistical significance. When the number is "named", this
indicates that you want to find an approximation of the values plotted
on y based on some transformation of the values that is the named column
of x (like "padj"). The default value |
xhex |
The raw |
yhex |
the |
width , height |
the width and height of the output plotly plot |
shiny_source |
the name of this element that is used in shiny callbacks.
Defaults to |
ggtheme |
a ggplot theme, like the thing returned from
|
... |
pass through arguments (not used) |
a ploty plot object
mg <- exampleSparrowResult()
volcanoPlot(mg)
volcanoPlot(mg, xhex=1, yhex=0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.