Help with tick label spacing
I'm using gsea analysis. This shows my phallmark pathways, however the tick labels on the x and y axes are too close together. I've tried different attempts. Figure and code pasted below. Anyone know howw to fix this?
g<-ggplot(fgseaResTidy, aes(reorder(pathway, NES), NES)) +
geom_col(aes(fill=padj<0.05)) +
coord_flip() +
labs(x="Pathway", y="Normalized Enrichment Score",
title="Hallmark pathways NES from GSEA") +
# theme_minimal()+
scale_y_continuous(n.breaks = 100)
#scale_y_discrete("Pathway")
#theme(legend.spacing.y=unit(100,'cm')) +
#guides(fill = guide_legend(byrow = TRUE))
#theme_bw() +
#scale_y_continuous(breaks=seq(0,15,1), limits = c(0, 15)) +
#theme(axis.text.y = element_text(margin = margin(r=5)))
#theme(axis.ticks.length=unit(3,"cm"),
# axis.text.y = element_text(margin = margin(0,5,0,0)))
#theme(text=element_text(size=12),
# axis.ticks.length = unit(0.25, "cm"),
# axis.text.x = element_text(margin = margin(5,0,0,0)),
# axis.text.y = element_text(margin = margin(0,5,0,0)))