plotVolcano | R Documentation |
Volcano plot for differential expression analysis
plotVolcano(
deg_df,
stat_metric = c("p.adjust", "pvalue"),
stat_cutoff = 0.05,
logFC_cutoff = 1,
up_color = "#E31A1C",
down_color = "#1F78B4",
show_gene = NULL,
dot_size = 1.75,
...
)
deg_df |
DEG dataframe with gene id, logFC and stat(e.g. pvalue/qvalue). |
stat_metric |
Statistic metric from "pvalue" or "p.adjust". |
stat_cutoff |
Statistic cutoff, default is 0.05. |
logFC_cutoff |
Log2 fold change cutoff, default is 1 which is actually 2 fold change. |
up_color |
Color of up-regulated genes, default is "dark red". |
down_color |
Color of down-regulated genes, default is "dark blue". |
show_gene |
Select genes to show, default is no genes to show. |
dot_size |
Volcano dot size, default is 1.75. |
... |
other arguments from 'plot_theme' function |
A ggplot object
if(requireNamespace("ggrepel",quietly = T)){
library(ggplot2)
data(deg, package = "genekitr")
plotVolcano(deg, "p.adjust", remove_legend = TRUE, dot_size = 3)
# show some genes
plotVolcano(deg, "p.adjust",
remove_legend = TRUE,
show_gene = c("CD36", "DUSP6", "IER3","CDH7")
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.