【发布时间】:2017-07-15 09:27:04
【问题描述】:
如何调整(增加或减少)轴文本(数字)和绘图区域(灰色区域)之间的间距?
dfr <- data.frame(x=1:5,y=1:5)
ggplot(dfr,aes(x,y))+
geom_point()+
theme(axis.title=element_blank(),
axis.ticks=element_blank())
【问题讨论】:
-
This question 可能会有所帮助。
-
见Increase distance between text and title on the y-axis。只需将
axis.title.y替换为axis.text.y。 -
是的!这似乎是正确的解决方案。