我想把我的情节传奇放在我的情节和我的标题。虽然我能够更改标题的大多数风格方面-例如,使用plot.caption
-我还没有找到一个方法来改变标题的位置。
到目前为止,我的情况如下:
ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) +
+ geom_point(size=6) + labs(caption = "Note: Dots are closer than they appear") +
theme_minimal() + theme(legend.position = c("bottom"))
有什么办法可以做这件事或者做些什么吗?
发布于 2021-08-10 21:30:34
也许你可以尝试使用lemon::reposition_legend
。
https://github.com/stefanedwards/lemon
你可以在传说中重新定位标题:
library(ggplot2)
ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +
geom_point(size =6) +
labs(caption = "Note: Dots are closer than they appear") +
theme_minimal() +
theme(legend.position = c("bottom"),
plot.caption.position = "plot",
plot.caption = element_text(vjust = 40))
https://stackoverflow.com/questions/68733590
复制相似问题