首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >ggplot2我想要的就是将y轴向右移动,并将它们向左对齐,以将它们包含在条形图中?

ggplot2我想要的就是将y轴向右移动,并将它们向左对齐,以将它们包含在条形图中?

提问于 2023-02-03 00:23:11
回答 0关注 0查看 45

p4<- ggplot(top20,aes(FoldEnrichment, fct_reorder(factor(Description), FoldEnrichment),fill=-1*log10(pvalue))) +

geom_bar(stat = "identity",width=0.7)+

  scale_fill_gradient(low = "red",high ="green" )+

  labs(title = "KEGG Pathways Enrichment",

       x = "FoldEnrichment",

       y = "Pathways")+

  theme(axis.title.x = element_text(face = "bold",size = 16),

        axis.title.y = element_text(face = "bold",size = 16),

        legend.title = element_text(face = "bold",size = 16))+

  theme_bw()

P4

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档