[R] using text on the x axis ticks rather than numbers

2004-09-07 Thread Rajarshi Guha
Hello, is there a way in which I can use text labels rather than numbers on the x axis ticks? I basically have a vector of (say) 8 points and I want to plot these sequentially. Thus the x axis would have ticks at 1 .. 8. Rather than having the labels 1 .. 8 I would like to have some arbitrary tex

Re: [R] using text on the x axis ticks rather than numbers

2004-09-07 Thread Eryk Wolski
Hi! first supress axis drawing with param axes=FALSE in your plot function. The use axis function to add your axes. ?axis /E On Tue, 7 Sep 2004, Rajarshi Guha wrote: > Hello, > is there a way in which I can use text labels rather than numbers on > the x axis ticks? I basically have a vector of

Re: [R] using text on the x axis ticks rather than numbers

2004-09-07 Thread Marc Schwartz
On Tue, 2004-09-07 at 12:52, Rajarshi Guha wrote: > Hello, > is there a way in which I can use text labels rather than numbers on > the x axis ticks? I basically have a vector of (say) 8 points and I want > to plot these sequentially. Thus the x axis would have ticks at 1 .. 8. > Rather than havi

Re: [R] using text on the x axis ticks rather than numbers

2004-09-07 Thread Adaikalavan Ramasamy
Out of curiosity, why is srt not respected in mtext ? See examples below plot(1:10, xaxt="n"); par(srt=45) mtext( paste("Point", LETTERS[1:10]), side=1, at=1:10 ) plot(1:10, xaxt="n"); mtext( paste("Point", LETTERS[1:10]), side=1, at=1:10, srt=45 ) It would be nice to have 'srt' as an argumen

Re: [R] using text on the x axis ticks rather than numbers

2004-09-07 Thread Prof Brian Ripley
On Tue, 7 Sep 2004, Adaikalavan Ramasamy wrote: > Out of curiosity, why is srt not respected in mtext ? See examples below It doesn't make a lot of sense. mtext is about putting text on >m It would be nice to have 'srt' as an argument in mtext in future. You haven't been listening to the discus