label.x
,但这并没有改变事物。
这是我的代码和情节:
ggarrange(plot1,plot2,plot3,
common.legend=TRUE,
labels = c("asdf", "asdfasdf", "asdfasdfasdfsadfasdf"),
hjust=-0.8,
ncol = 2, nrow = 2)
我不确定这是否是您问题的缩短,但是尝试这可能会有所帮助:
plot1 <- plot1 + theme(legend.position="left")+
labs(title="asdf")
plot2<- plot2 + theme(legend.position="left")+
labs(title="asdfasf")
plot3 <- plot3 + theme(legend.position="left")+
labs(title="asdfasdfasfdsas")
ggarrange(plot1,plot2,plot3,
common.legend=TRUE,
hjust=-0.8,
ncol = 2, nrow = 2)
您可以检查:
迟到了,但是我遇到了同样的问题并解决了(至少对我有用)。 对于您的情况,请尝试
hjust = c(0,0,0)
。这可能起作用。 祝你好运