Skip to content
Prev 241091 / 398500 Next

Plotting 2 Lines on the Same Chart

2 is
already
...or try 

plot(series1, type="l", ylim=range(pretty(c(series1, series2))) )
lines(series2)

which gives more-or-less sensible ylim scaling based on all the data.
Adding 0 inside the c() will guarantee that zero is in the vertical
scale, too.


*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}