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
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
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
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,
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,
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.
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
7 matches
Mail list logo