ezvolcano | R Documentation |
Volcano plot in ggplot2 using output from ezlimma
package, e.g. limma_contrasts
.
The logFC and significance columns are supplied by the user, or inferred from the supplied comparison
,
e.g. if comparison="AvsB"
, ezvolcano
expects column names AvsB.logFC
and,
depending on type.sig
, AvsB.p
or AvsB.FDR
.
ezvolcano(
tab,
lfc.col = NA,
sig.col = NA,
lab.col = "Gene.Symbol",
ntop.sig = 0,
ntop.lfc = 0,
comparison = NULL,
alpha = 0.4,
name = "volcano",
ann.rnames = NULL,
up.ann.color = "black",
down.ann.color = "black",
shape = 19,
x.bound = NULL,
y.bound = NULL,
type.sig = c("p", "FDR"),
cut.color = "black",
cut.lfc = 1,
cut.sig = 0.05,
lines.sig = NA,
raster = FALSE,
sep = ".",
na.lab = c("---", ""),
seed = 0,
plot = TRUE
)
tab |
Table of output from |
lfc.col |
Column name or index of tab with logFC. Some features should be > 0 and others < 0. |
sig.col |
Column name or index of tab with p-values or FDRs. |
lab.col |
Column name or index of tab with labels, such as gene symbol, annotating features. If |
ntop.sig |
Number of top significant features to annotate. |
ntop.lfc |
Number of top logFC features to annotate. |
comparison |
Name of contrast to plot. If given, it's assumed that |
alpha |
Transparency for non-annotated points, passed to |
name |
Name of file to create. Set to |
ann.rnames |
Character vector of additional rownames of |
up.ann.color |
Color for annotated points that are upregulated ( |
down.ann.color |
Color for annotated points that are downregulated ( |
shape |
Shape of non-annotated dots. Set to 1 for empty dots. |
x.bound |
x-axis limits are set to |
y.bound |
y-axis limits are set to |
type.sig |
Type of significance y-axis should use, either "p" or "FDR". |
cut.color |
Color of points that meet both |
cut.lfc |
Points need to have |
cut.sig |
Points need to have significance |
lines.sig |
Numeric vector of values of |
raster |
Rasterize points using |
sep |
Separator string between contrast names and suffix such as |
na.lab |
Character vector of labels in |
seed |
Numeric seed for reproducibility since |
plot |
Logical; should plot be generated? |
If ntop.sig>0
or ntop.lfc>0
, then lab.col
must be in colnames(tab)
.
For annotated points, up.ann.color
& down.ann.color
dominate cut.color
.
Invisibly, a ggplot
object.
multi_volcano
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.