Re: [R] x tick labels - sparse?

2006-10-20 Thread Darren Weber
OK, so that works. It reduces the number of tick marks and labels by reduction of the x array to elements that are multiples of 100. That is nice, but it's not what I really want. I do want tick marks at all elements of x, but only a sparse number of tick labels. I want to control what the

Re: [R] x tick labels - sparse?

2006-10-20 Thread jim holtman
try this: x - seq(-100,1000,25) y - x * x plot(x, y, xaxt = n) # plot only the 100th values y - x %% 100 == 0 axis(1, x[y], labels=x[y]) On 10/20/06, Darren Weber [EMAIL PROTECTED] wrote: OK, so that works. It reduces the number of tick marks and labels by reduction of the x array to

Re: [R] x tick labels - sparse?

2006-10-20 Thread Gabor Grothendieck
It looks weird to me too. Try this: x - seq(-100,1000,25) y - x * x plot(x, y, xaxt = n) axis(1, x, FALSE, tcl = -0.3) axis(1, x[x %% 100 == 0] ) On 10/20/06, Darren Weber [EMAIL PROTECTED] wrote: OK, so that works. It reduces the number of tick marks and labels by reduction of the x

[R] x tick labels - sparse?

2006-08-11 Thread Darren Weber
Hi, I'm stuck on creating a plot with x tick labels for every Nth tick mark - how is that done? I don't see a simple solution to this in help(plot) or help(par) and what I've tried is not working, eg, the following does not work, although it seems intuitive to me that it should work: x -

Re: [R] x tick labels - sparse?

2006-08-11 Thread Gabor Grothendieck
Try this: x - seq(-100,1000,25) y - x * x plot(x, y, xaxt = n) axis(1, x[x %% 100 == 0]) On 8/11/06, Darren Weber [EMAIL PROTECTED] wrote: Hi, I'm stuck on creating a plot with x tick labels for every Nth tick mark - how is that done? I don't see a simple solution to this in help(plot)