This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Y-axis break in Volcano Plot

enter image description hereres_lumbar <-read.csv("res_lumbar_results_new.csv",header=TRUE)

sig_lumbar<- subset(res_lumbar, padj < 0.1 & abs(log2FoldChange) >= 1)

up_lumbar <- subset(sig_lumbar, log2FoldChange >= 1)

down_lumbar<- subset(sig_lumbar, log2FoldChange <= -1)

cat("Lumbar Upregulated:", nrow(up_lumbar), "\n")

cat("Lumbar  Downregulated:", nrow(down_lumbar), "\n")

EnhancedVolcano(res_lumbar,
                lab = NA,
                x = "log2FoldChange",
                y = "padj",
                title = "Volcano Plot: Thoracic CT vs IT",
                xlab = "Log2 Fold Change",
                ylab = "-log10(p-value)",
                pCutoff = 0.05,
                FCcutoff = 1,
                pointSize = 1,
                colAlpha = 0.75,
                legendPosition = "right",
                legendLabSize = 12,
                legendIconSize = 4,
                drawConnectors = FALSE,
                ylim=c(0,130)
)

This is the code i have used. While plotting the Volcano plots, due to few outliers, my whole plot is getting skewed, can anyone please suggest me how to include nreaks in the y-axis. Any help is appreciated

volcano_plot enhanced_volcano

Any help is appreciated

You should consider upvoting and validating (accepting, green check mark) comments/answers you have received on your previous questions. That is a perfect way of showing your appreciation for the help you receive on Biostars.

I am not familiar with the package EnhancedVolcano, but based on your code, should not you be able to change the y-axis limits through the argument ylim in the function EnhancedVolcano()? As it is, the y-axis will be ranging from 0 to 130. Did you try to change ylim=c(0,130) to ylim=c(0,100), or whatever range you want to see represented in the y-axis scale?

0 answers

No answers yet.

Log in to answer this question.