在R中,我目前有这个ggplot

我希望把标题放在正方形的中央,就像这样:

我看了一下?element_text,但没有位置/偏移设置。如何在ggplot中移动偏移x轴
发布于 2020-12-04 02:51:16
也许可以尝试使用我添加的theme():
library(ggplot2)
#Code
ggplot(iris,aes(x=Species,y=Sepal.Length))+
geom_boxplot(aes(fill=Species))+
theme(axis.text.x = element_text(angle = 90,vjust = 0.5))输出:

https://stackoverflow.com/questions/65132208
复制相似问题