Re: [R] Sos! "Lines" doesn't add plots to an existing plot...

From: Dieter Menne <>
Date: Tue 31 Jan 2006 - 18:27:57 EST

Michael <comtech.usa <at>> writes:

> > plot(testError, col="red")
> > lines(testVar, col="black")
> Only one plot (the red one) appear on the Window, the black line did not
> appear...what's wrong?

We can only guess, because you did not supply the data. But I am quite sure, that the lines-data are outside the range set by plot, probable because it were "errors", i.e. differences to the original data. Try

plot(testVar, col="red")
lines(testError, col="black")

or use xlim as parameter of plot

Dieter mailing list PLEASE do read the posting guide! Received on Tue Jan 31 18:35:57 2006

This archive was generated by hypermail 2.1.8 : Tue 31 Jan 2006 - 21:05:03 EST