Re: [R] xyplot: adjusting the scale (min, max tick)

2010-01-07 Thread Peter Ehlers
Jay wrote: Perfect, that piece of code did exactly what I wanted. However, I stumpled upon a new problem, now my data is plotted on a totally wrong scale. The y-values are all between 160k and 500k, BUT now with that option I find that the plots are between 0 and 50 (?!?). What did I do wrong?

Re: [R] xyplot: adjusting the scale (min, max tick)

2010-01-06 Thread Jay
Perfect, that piece of code did exactly what I wanted. However, I stumpled upon a new problem, now my data is plotted on a totally wrong scale. The y-values are all between 160k and 500k, BUT now with that option I find that the plots are between 0 and 50 (?!?). What did I do wrong? This plots

[R] xyplot: adjusting the scale (min, max tick)

2010-01-05 Thread Jay
Hi, I'm terribly sorry but it seems it cannot figure this one out by myself so, please, if somebody could help I would be very grateful. So, when I plot with xyplot() I get an y-axis that is very ugly... starting from a random number and having so many ticks that it becomes unreadable. How do I

Re: [R] xyplot: adjusting the scale (min, max tick)

2010-01-05 Thread Peter Ehlers
Have a look at the 'scales' argument. For example: # default plot xyplot(Sepal.Length ~ Petal.Length | Species, data = iris) # modified plot xyplot(Sepal.Length ~ Petal.Length | Species, data = iris, scales=list(y=list(at=c(-5,0,5,10), limits=c(-5,10 -Peter Ehlers Jay wrote: Hi,