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
You can use axis:
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()