[R] no y-axis

Jim Lemon jim at bitwrit.com.au
Tue Nov 13 10:58:44 CET 2012


On 11/13/2012 06:59 AM, Geophagus wrote:
> thanks, that works fine! good idea.
>
> I have one last question regarding this problem.
> My y-scale now is grouped from 0 - 4000 in 1000.
> Is it possible to set the scale into not equal breaks like
> 5,10,100,1000,5000 ?
>
> My axis now:
> axis(2,at=seq(0,4000,1000),col = "white", las=1)
>
Hi GeO,
I would suggest using mtext rather than axis.

mtext(c(5,10,100,1000,5000),at=c(5,10,100,1000,5000),
  side=2,line=1)

You may need to twiddle this a bit to get it right.

Jim




More information about the R-help mailing list