在Stata图中,如何将轴标签更近地移动?
我正在Stata中创建RCAP
图形,并遇到了X轴标签的问题。无论我尝试什么,标签都落在图表之外。
我想将标签(和CI棒)靠近 - 换句话说,我想缩小CI棒(及其相关标签)之间的差距,以便什么都不会被切断。
这是我的代码:
set scheme cleanplots
twoway rcap medicaid_lo medicaid_hi status, xlabel(1 2 3, valuelabel noticks) ytitle("") xtitle("")
谢谢!
I'm creating an rcap
graph in Stata and running into issues with the x-axis labels. No matter what I try, the labels fall outside the graph.
I want to push the labels (and the CI bars) closer together - in other words, I want to narrow the gaps between CI bars (and their associated labels) so that nothing gets cut out.
And here is my code:
set scheme cleanplots
twoway rcap medicaid_lo medicaid_hi status, xlabel(1 2 3, valuelabel noticks) ytitle("") xtitle("")
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您也可以尝试使用
GraphRegion(Margin(Vlarge))
,它增加了图形周围的边距,以便为更长的X轴标签提供空间。You can also try using
graphregion(margin(vlarge))
, which increases the margins around your graph to allow for space for longer x-axis labels.