Volcano Plot using ggplot2
To construct the volcano plot using R's ggplot2 package, users will need to import it to the working environment via library(ggplot2)
.
library(ggplot2)
Next, construct the plot using the code below.
ggplot(hbr_uhr_chr22_deg, aes(x=log2FoldChange, y=neg.log10PAdj, color=significance))+
geom_point()+xlab("Log2 Fold Change")+ylab("-log10 Adjusted P")+
theme(axis.title.x=element_text(size=15),axis.title.y=element_text(size=15),
axis.text.x=element_text(size=14),axis.text.y=element_text(size=14),
legend.title=element_text(size=15),legend.text=element_text(size=14))