Kevin,
Thanks for that help. It works beautifully now. Can I just check if the dataframe must be called "res1" and the names of the X and Y columns in res1 must be called "Log2_FoldChange" and "pvalue"? The reason I ask is that I have several experiments summarised in the one dataframe and obviously can't have multiple columns with the same name. It's not an issue I just want to be clear about the naming requirements.
Assume this is a typo, but your
EnhancedVolcanocall usesres 1rather thanres1.Peter, can you confirm that this was the issue? Otherwise, there's no reason for an empty plot to be produced, unless you have some other devices open elsewhere that are interfering, and/or your
res1object's columns are not encoded correctly.Kevin, I corrected the error that jared spotted but am still getting the same error message. I noticed in other posts some comments about version numbers. I am running r 3.5.2 is that the issue? The only other thing I can think of is the my spread on the y axis is very small. The largest number is only 2.20. The experiment didn't produce DE genes with huge fold changes.
Could it be related to the p-values all being > 1? As this would give negative values when -log10?
peter.berry5, are you sure you did not mix up p-value and FC column?
Indeed, your p-values are outside the range expected for p-values. For example:
So, they will not even appear in the plot space.
Kevin and AT point, Thanks for all the help. I caclulated my log 2 and -log 10 values previously (the column names aren't v clear but the data I provided is the results of those calculations) and it is these values I passed to the Enhanced Volcanos plot as my "x" and "y". Is there a way I can modify the package or graphing code to plot the data values I have?. If it helps my Log2 FC values range from 0.5 to 2.30 and my -log10 pvalues range from 1.35 to 9.69