R - 自定义直方图中的 X 轴值
我想更改 R 中直方图中 x 轴上的值。
计算机当前已将其设置为
0, 20, 40, 60, 80, 100.
我希望 x 轴移动 10,如下所示:
0,10,20,30,40,50,60,70,80,90,100.
我知道要摆脱当前轴,我必须这样做
(hist(x), .... xaxt = 'n')
并且那么
axis(side = 1) .....
我怎样才能让它显示我需要显示的数字呢?
谢谢。
I want to change the values on the x axis in my histogram in R.
The computer currently has it set as
0, 20, 40, 60, 80, 100.
I want the x axis to go by 10 as in:
0,10,20,30,40,50,60,70,80,90,100.
I know to get rid of the current axis I have to do this
(hist(x), .... xaxt = 'n')
and then
axis(side = 1) .....
But how do I get it to show the numbers that I need it to show?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案就在
?axis
中...The answer is right there in
?axis
...