bio-data-visualization-volcano-customization
Installation
SKILL.md
Volcano Plot Customization
ggplot2 Basic Volcano
library(ggplot2)
library(ggrepel)
# Add significance category column
df$significance <- case_when(
df$padj < 0.05 & df$log2FoldChange > 1 ~ 'Up',
df$padj < 0.05 & df$log2FoldChange < -1 ~ 'Down',
TRUE ~ 'NS'
)