By EnhancedVolcano R package I have this plot with this code
> head(res1)
baseMean log2FoldChange lfcSE stat pvalue padj
SAMD11 237.7975 0.03584334 1.3244737 0.02706233 0.97841002 0.9971691
NOC2L 4751.0381 -0.62090622 0.6500115 -0.95522347 0.33946470 0.9239759
KLHL17 735.0849 -0.95126291 0.8417444 -1.13010892 0.25843033 0.8926461
PLEKHN1 1117.5598 -2.11321359 1.0411108 -2.02976816 0.04238011 0.6350143
PERM1 409.0061 -2.32444927 1.1255813 -2.06511000 0.03891259 0.6285916
HES4 1088.7549 0.28395931 0.9091259 0.31234320 0.75477971 0.9866881
>
p= EnhancedVolcano(res1,
lab = rownames(res1),
x = 'log2FoldChange',
y = 'pvalue',
xlim = c(-5, 8))
I have stored my plot in an object
> class(p)
[1] "gg" "ggplot"
I want to limit the axis length in this plot in the other word shrining my plot more but I don't know how to do that. For example y axis be from 0 to 10 instead of 20
Any help please