[R] x-axis labeling between thickpoints

Eric Thompson ericthompso at gmail.com
Sun Feb 4 19:45:39 CET 2007


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.
>



More information about the R-help mailing list