[R] High/low level: Plot 2 time series with different axis (left and right)

Jan Verbesselt Jan.Verbesselt at agr.kuleuven.ac.be
Sun Mar 14 18:04:02 CET 2004


Dear R specialists,

I have two time series in a data.frame and want to plot them in the same
plot(), with the left axis scaled to time series 1 (-700,0) and the
right axis scaled to time series 2 (-0.2, 0.4). 

plot(timeserie1)
lines(timeserie2, col=c(2)) => this one should be scaled differently
with a new axis on the right handside.

How can these be visualised such that the fit is optimal for
visualisation of the two time series? Which commands can I use?

Thanks,
Jan




More information about the R-help mailing list