I have been experiencing an error while using the limma package in R to plot the top gene but unfortunately, I have been getting an error stating I do not have two columns The piece of code looks like this:
limma::plotMA(c(resSig$log2FoldChange,resSig$pvalue),alpha = 0.05, colNonSig = "grey",ylim = c(-5,5))
The error I am getting is :
Error in plotMA.default(c(resSig$log2FoldChange, resSig$pvalue), alpha = 0.05, : Need at least two columns.
My resSig contains the following :