Question: add cut off lines to volcano plot
0
gravatar for Sam
11 weeks ago by
Sam100
Sam100 wrote:

Dear all

I got the volcano plot of deseq2 output with this code :

 with(res, plot(log2FoldChange, -log10(pvalue), pch=20, main="Volcano plot", xlim=c(-8,8)))
with(subset(res, padj<0.1 ), points(log2FoldChange, -log10(pvalue), pch=20, col="red"))
with(subset(res, abs(log2FoldChange)>1), points(log2FoldChange, -log10(pvalue), pch=20, col="orange"))
 with(subset(res, padj<0.1 & abs(log2FoldChange)>1), points(log2FoldChange, -log10(pvalue), pch=20, col="green"))
library(calibrate)
with(subset(res, padj<0.1 & abs(log2FoldChange)>1), textxy(log2FoldChange, -log10(pvalue), labs=Geneid, cex=.8))

but I want add the cut off lines (padj and log2FoldChange) to the plot, any help for the code?

Thanks

volcano plot • 133 views
ADD COMMENTlink written 11 weeks ago by Sam100

refer to abline function in R.

ADD REPLYlink modified 11 weeks ago • written 11 weeks ago by cpad011211k

Hello Sam!

We believe that this post does not fit the main topic of this site.

Basic R question. Please search the web and especially Stack Exchange.

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

ADD REPLYlink written 11 weeks ago by ATpoint15k
1

I respectfully disagree - where there are other ways to learn about the abline() function, this looks like a perfectly appropriate question for Biostars.

ADD REPLYlink written 11 weeks ago by Charles Warden6.6k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 803 users visited in the last hour