Set the intervals of x-axis using r

后端 未结 1 1630
一整个雨季
一整个雨季 2020-12-28 16:01

I plot a distribution of visit time of a scenic spot from 0 to 23 hours in a day. And I want to adjust the intervals of x-axis letting all hours be displaye

相关标签:
1条回答
  • 2020-12-28 16:35

    You can use axis:

    > axis(side=1, at=c(0:23))
    

    That is, something like this:

    plot(0:23, d, type='b', axes=FALSE)
    axis(side=1, at=c(0:23))
    axis(side=2, at=seq(0, 600, by=100))
    box()
    
    0 讨论(0)
提交回复
热议问题