Entering edit mode
5.6 years ago
jsutah08
•
0
Hello,
I am trying to make a volcano plot using EnchancedVolcano. I would like to label genes but when I draw the volcano plot, the genes were labeled with numbers instead name.
Could you let me know what I need to correct?
Thank you!
#Plot the most basic volcano plot
EnhancedVolcano(res,
lab = rownames(res),
x = 'Lg2Rto.A_C',
y = 'AdjP.A_C',
xlim = c(-4, 4),
title = 'DEG',
pCutoff = 0.05,
FCcutoff = 1,
transcriptPointSize = 3.0,
transcriptLabSize = 3.0)
Can you provide the outputs of
str(res)
andhead(rownames(res))
?This is what I got.
It looks like
rownames(res)
does not correspond to the gene names, are you sure there isn't a specific column ofres
that corresponds to gene names? Maybe paste the output ofhead(res)
.This is what I got...