Re: [R] Zoo: How to match secondary Y-axis ticks to primary ones

2014-05-28 Thread Bastian Pöschl
Thank you for the quick reply, your advice wasn't exactly what I was looking for. The plot 1 of the example was ment to show my problem: the secondary axis has it's first tick at the intersection with the x-axis whereas the primary y-axis shows a nice little offset. Using your advice i copied

Re: [R] Zoo: How to match secondary Y-axis ticks to primary ones

2014-05-28 Thread Gabor Grothendieck
On Wed, May 28, 2014 at 4:28 AM, Bastian Pöschl bstan0...@gmail.com wrote: Thank you for the quick reply, your advice wasn't exactly what I was looking for. The plot 1 of the example was ment to show my problem: the secondary axis has it's first tick at the intersection with the x-axis

Re: [R] Zoo: How to match secondary Y-axis ticks to primary ones

2014-05-28 Thread Bastian Pöschl
Thank you, this is the solution. I just replaced at4/20 by seq(0, max.yl, length.out=par(yaxp)[3]+1) so it should work with any scale. here is the final code that worked for me: ## R-Help 2014-05-28 asked by Bastian Pöschl solved by Gabor Grothendieck library(zoo) ## generate some smooth

Re: [R] Zoo: How to match secondary Y-axis ticks to primary ones

2014-05-28 Thread Bastian Pöschl
Sorry the last post has got a mistake, here is the corrected version: ## R-Help 2014-05-28 asked by Bastian Pöschl solved by Gabor Grothendieck library(zoo) ## generate some smooth timeseries x1 - c(38.2, 18.1, 83.2, 42.7, 22.8, 48.1, 81.8, 129.6, 52.0, 110.3) x2 - c(2.2, 0.8, 0.7, 1.6, 0.9,

Re: [R] Zoo: How to match secondary Y-axis ticks to primary ones

2014-05-28 Thread Bastian Pöschl
To get 0.5 Ticks the script was corrected another time ;) ## R-Help 2014-05-28 asked by Bastian Pöschl solved by Gabor Grothendieck library(zoo) ## generate some smooth timeseries x1 - c(38.2, 18.1, 83.2, 42.7, 22.8, 48.1, 81.8, 129.6, 52.0, 110.3) x2 - c(2.2, 0.8, 0.7, 1.6, 0.9, 0.9, 1.1, 2.8,

[R] Zoo: How to match secondary Y-axis ticks to primary ones

2014-05-27 Thread Bastian Pöschl
Hallo, i try to draw a plot (plot.zoo) with a secondary y-axis. Further I want to draw reference lines. Unfortunately I do not manage to get control on the ticks, so that the reference lines match both- primary and secondary y-axis. Maybe someone already solved this problem?? It would be great.

Re: [R] Zoo: How to match secondary Y-axis ticks to primary ones

2014-05-27 Thread Gabor Grothendieck
On Tue, May 27, 2014 at 8:02 AM, Bastian Pöschl bstan0...@gmail.com wrote: Hallo, i try to draw a plot (plot.zoo) with a secondary y-axis. Further I want to draw reference lines. Unfortunately I do not manage to get control on the ticks, so that the reference lines match both- primary and