I think you want the 'at', 'labels', and 'tick'
arguments of axis().
This should essentially get you what you want:
> hist(rnorm(100), axes = F)
> axis(side = 1, at = -3:3, lab = F)
> axis(side = 1, at = (-3:3)+0.5, tick = F)
On 2/4/07, Ren? Cyranek <rcyranek at smail.uni-koeln.de>
wrote:> Hello!
>
> I am trying to plot a histogram, which has the labels of the x-axis not
> directly at the tick marks but between them. I tried a lot so far, but did
> not find the way to do it. Does somebody know this?
>
> Thanks,
> Ren?
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>