【发布时间】:2013-11-03 06:45:36
【问题描述】:
我遇到了一个问题,我的轴标签重叠,并且似乎无法找到解决此问题的解决方案。
p <- ggplot(data=Data,aes(x=Indicator,y=Numeric,group=Expenditure_group,shape=Expenditure_group,colour=Expenditure_group))+geom_point()+geom_line()
有没有办法解决这个问题,以免重叠?
【问题讨论】:
-
这已在最新版本的 ggplot2(版本 3.3.0)中得到修复。可以做,比如p + scale_x_discrete(guide = guide_axis(n.dodge = 2))