[R] shifting ticks to left or right
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Wed Oct 1 18:38:04 CEST 2008
Schreiber, Stefan wrote:
> Hey list,
>
> Does anybody knows a command to centre the tick mark labels exactly
> between the tick points (right shift)?
> And then to exclude the last tick label on the right?
>
> I know one can shift them using the 'hadj' option in par. But I am
> wondering if there is a more convenient command!
>
> Thanks a lot!!
>
> Stefan
>
Hmm, are you solving the right problem there? Sounds like it would be
easier to do TWO axes, one with no labels and another with no tickmarks:
z<-seq(from=.5,length=10)
plot(z,sin(z),xaxt="n", xlim=c(0,10))
axis(1,at=z, labels=letters[1:10], tick=F)
axis(1,at=0:10, labels=F)
--
O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list